void-packages/srcpkgs/passwordsafe/template

30 lines
1.1 KiB
Bash

# Template file for 'passwordsafe'
pkgname=passwordsafe
version=1.12.0
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
# testing disabled: want to build gtest from source (package gtest-devel useless)
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 qrencode-devel libressl-devel libcurl-devel file-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=8d331019170f2920a28ccda08ae420c78e016f41d3ccedb7b4dba1f5f7f25bcb
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
vsed -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" -i CMakeLists.txt
}
post_install() {
vlicense LICENSE
vdoc docs/config.txt
}