void-packages/srcpkgs/passwordsafe/template

45 lines
1.8 KiB
Bash

# Template file for 'passwordwsafe'
pkgname=passwordsafe
version="0.97BETA"
revision=2
wrksrc="pwsafe-${version}"
build_style=gnu-makefile
make_build_target="release help I18N"
# Makefile uses perl to generate core_st.cpp, zip to generate help files
hostmakedepends="perl wxWidgets-devel zip pkg-config gettext"
makedepends="wxWidgets-devel libXt-devel libXtst-devel libxerces-c-devel libuuid-devel libykpers-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/releases/download/${version}/pwsafe-${version}-src.tgz"
checksum=f1cdbdda7ef795d974772e40a0d040deb296c110ded1bd05a524a6baa152a9a8
nocross=yes
do_install() {
# use 'passwordsafe' in filenames as much as possible.
vbin src/ui/wxWidgets/GCCUnicodeRelease/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
# 0.97BETA: localized help files are useless
# without locales (see below).
# keep only english help file.
#for f in help/help*.zip; do
# vinstall $f 644 usr/share/${pkgname}/help
#done
vinstall help/helpEN.zip 644 usr/share/passwordsafe/help
# XML files
vcopy xml usr/share/${pkgname}
vlicense LICENSE
vdoc docs/config.txt
vman docs/pwsafe.1 passwordsafe.1
# 0.97BETA: no locales.
# runtime crash on language change in GUI,
# and additional entries appears in data file.
#vmkdir usr/share/locale
#vcopy src/ui/wxWidgets/I18N/mos/* usr/share/locale
}