2015-04-01 21:30:40 +02:00
|
|
|
# Template file for 'keepassx2'
|
|
|
|
_realname="keepassx"
|
2015-07-20 22:41:55 +02:00
|
|
|
_realversion="2.0-beta1"
|
2015-04-01 21:30:40 +02:00
|
|
|
pkgname="${_realname}2"
|
|
|
|
version="2.0"
|
2015-11-24 07:58:16 +01:00
|
|
|
revision=4
|
2015-04-01 21:30:40 +02:00
|
|
|
build_style=cmake
|
2015-04-01 23:54:16 +02:00
|
|
|
hostmakedepends="pkg-config cmake"
|
|
|
|
makedepends="qt-devel libgcrypt-devel zlib-devel"
|
2015-04-01 21:30:40 +02:00
|
|
|
short_desc="A password manager to secure personal data"
|
|
|
|
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://www.keepassx.org/"
|
2015-07-20 22:41:55 +02:00
|
|
|
distfiles="${homepage}/dev/attachments/download/100/${_realname}-${_realversion}.tar.gz"
|
|
|
|
checksum=bce1933c48fd33ef8043dd526d769fd9c454d1b63464c82a35e1f7a8689acbf2
|
2015-04-01 21:30:40 +02:00
|
|
|
wrksrc="${_realname}-${_realversion}"
|
2015-11-24 07:58:16 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i CMakeLists.txt \
|
|
|
|
-e "s/set(PROGNAME.*/set(PROGNAME keepassx2)/"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2015-11-24 08:14:22 +01:00
|
|
|
sed -i $DESTDIR/usr/share/applications/keepassx.desktop \
|
2015-11-24 07:58:16 +01:00
|
|
|
-e "s/^Exec=.*/Exec=keepassx2/"
|
2015-11-24 08:14:22 +01:00
|
|
|
mv $DESTDIR/usr/share/applications/keepassx.desktop \
|
|
|
|
$DESTDIR/usr/share/applications/keepassx2.desktop
|
|
|
|
mv $DESTDIR/usr/share/mime/packages/keepassx.xml \
|
2015-11-24 08:16:24 +01:00
|
|
|
$DESTDIR/usr/share/mime/packages/keepassx2.xml
|
2015-11-24 07:58:16 +01:00
|
|
|
}
|