void-packages/srcpkgs/passwordsafe/template

50 lines
1.8 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'passwordsafe'
pkgname=passwordsafe
version="1.03BETA"
revision=2
wrksrc="pwsafe-${version}"
build_style=cmake
# build process uses perl to generate core_st.cpp and zip to generate help files
hostmakedepends="perl zip pkg-config gettext"
makedepends="wxWidgets-devel libXt-devel libXtst-devel libxerces-c-devel libuuid-devel
libykpers-devel gtest-devel qrencode-devel"
short_desc="Simple & Secure Password Management"
maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="http://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
checksum=36d64d748a63825cb17e247628f6a378f131d952d4c1715cc6304e4d07b3e0ed
pre_configure() {
# cmake doesnt find/use the wx-config wrapper
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "1i\set(wxWidgets_CONFIG_OPTIONS --prefix=${XBPS_CROSS_BASE}/usr)" \
-e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" \
CMakeLists.txt
}
do_install() {
# use 'passwordsafe' in filenames as much as possible.
vbin build/pwsafe passwordsafe
vinstall install/desktop/pwsafe.desktop 644 usr/share/applications passwordsafe.desktop
vinstall install/graphics/pwsafe.png 644 usr/share/icons/hicolor/48x48/apps passwordsafe.png
sed -i -e 's,^\(Exec\|Icon\)=.*,\1=passwordsafe,' ${DESTDIR}/usr/share/applications/passwordsafe.desktop
# Help files
for f in build/help/help*.zip; do
vinstall $f 644 usr/share/${pkgname}/help
done
# XML files (format converters)
vcopy xml usr/share/${pkgname}
vlicense LICENSE
vdoc docs/config.txt
vman docs/pwsafe.1 passwordsafe.1
# locales
# NB: correspoding locales have to be enabled in /etc/default/libc-locales
vmkdir usr/share/locale
vcopy build/src/ui/wxWidgets/I18N/mos/* usr/share/locale
}