blob: ec4213085626fb6cf44393881c4da423c3abfd88 (
plain)
1 # Description: Password manager application
2 # URL: http://www.keepassx.org/
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: qt4 libgcrypt xorg-libxtst
5
6 name=keepassx2
7 version=2.0.3
8 release=1
9 source=(https://www.keepassx.org/releases/$version/keepassx-$version.tar.gz)
10
11 build() {
12 # rename to keepassx2
13 pushd */
14 sed -r 's|(keepassx)|\12|g' -i CMakeLists.txt share/linux/keepassx.desktop
15 sed -r 's|(keepassx)(\.desktop\|\.xml)|\12\2|g' -i share/CMakeLists.txt
16 sed -r 's|(KeePassX)|\1 2|g' -i share/linux/keepassx.desktop
17 rename 'keepassx' 'keepassx2' share/linux/keepassx.{desktop,xml}
18 popd
19
20 mkdir build; cd build
21
22 cmake ../*-$version/ \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
26 -DWITH_TESTS=OFF
27 make
28 make DESTDIR=$PKG install
29
30 # rename to keepassx2
31 rename keepassx keepassx2 $PKG/usr/share/icons/hicolor/*/*/keepassx.png
32 }
|