38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'passwordsafe'
|
|
pkgname=passwordsafe
|
|
version=1.16.0
|
|
revision=2
|
|
build_style=cmake
|
|
build_helper=cmake-wxWidgets-gtk3
|
|
# 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 qrencode-devel openssl-devel libcurl-devel file-devel"
|
|
checkdepends="gtest-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"
|
|
checksum=6215f7b052480f03276b3ea590b9cdd23180db8d5d4a19185f3df7b6ddba11f8
|
|
|
|
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DNO_GTEST=OFF"
|
|
else
|
|
configure_args+=" -DNO_GTEST=ON"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ -n "${CROSS_BUILD}" ]; then
|
|
# ykpers-1 includes are hardcoded, add cross base
|
|
vsed -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" -i CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vdoc docs/config.txt
|
|
}
|