void-packages/srcpkgs/passwordsafe/template

37 lines
1.2 KiB
Bash

# Template file for 'passwordsafe'
pkgname=passwordsafe
version=1.08.1BETA
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
configure_args="-DNO_GTEST=ON"
# build process uses perl to generate core_st.cpp and zip to generate help files
hostmakedepends="perl zip pkg-config gettext"
makedepends="wxWidgets-gtk3-devel libXt-devel libXtst-devel libxerces-c-devel libuuid-devel
libykpers-devel gtest-devel qrencode-devel libressl-devel libcurl-devel"
short_desc="Simple & Secure Password Management"
maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="https://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
checksum=2c3648e8189a32c107c7d7bc0527c919db36b3940f19b0e58b37f0f992ea42a7
# wx-config-gtk3 crossbuild handled via wrapper
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
fi
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" CMakeLists.txt
# icons in right place
sed -i -e "s|share/pixmaps|share/icons/hicolor/48x48/apps|" CMakeLists.txt
}
post_install() {
vlicense LICENSE
vdoc docs/config.txt
}