diff options
author | Alan Mizrahi <alan+crux@mizrahi.com.ve> | 2016-08-15 17:39:53 +0900 |
---|---|---|
committer | Alan Mizrahi <alan+crux@mizrahi.com.ve> | 2016-08-15 17:39:53 +0900 |
commit | 84ad1f59d502e10fba868b6109c0831d105a2c61 (patch) | |
tree | 32f41c314cbf34d6c49ee13eec033c12205e6a1b /keepassx2/Pkgfile | |
parent | df4f22cb77804d86f3bf9dfd6cd277c7d872bb33 (diff) | |
download | contrib-84ad1f59d502e10fba868b6109c0831d105a2c61.tar.gz contrib-84ad1f59d502e10fba868b6109c0831d105a2c61.tar.xz |
keepassx2: initial commit version 2.0.2
Diffstat (limited to 'keepassx2/Pkgfile')
-rw-r--r-- | keepassx2/Pkgfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/keepassx2/Pkgfile b/keepassx2/Pkgfile new file mode 100644 index 000000000..6e45a0654 --- /dev/null +++ b/keepassx2/Pkgfile @@ -0,0 +1,31 @@ +# Description: Password manager application +# URL: http://www.keepassx.org/ +# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve +# Depends on: qt4 libgcrypt + +name=keepassx2 +version=2.0.2 +release=1 +source=(https://www.keepassx.org/releases/$version/keepassx-$version.tar.gz) + +build() { + # rename to keepassx2 + pushd */ + sed -r 's|(keepassx)|\12|g' -i CMakeLists.txt share/linux/keepassx.desktop + sed -r 's|(keepassx)(\.desktop\|\.xml)|\12\2|g' -i share/CMakeLists.txt + sed -r 's|(KeePassX)|\1 2|g' -i share/linux/keepassx.desktop + rename 'keepassx' 'keepassx2' share/linux/keepassx.{desktop,xml} + popd + + mkdir build; cd build + + cmake ../*-$version/ \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DWITH_TESTS=OFF + make + make DESTDIR=$PKG install + + # rename to keepassx2 + rename keepassx keepassx2 $PKG/usr/share/icons/hicolor/*/*/keepassx.png +} |