33 lines
920 B
Plaintext
33 lines
920 B
Plaintext
# Description: Password manager application
|
|
# URL: http://www.keepassx.org/
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Depends on: qt4 libgcrypt xorg-libxtst
|
|
|
|
name=keepassx2
|
|
version=2.0.3
|
|
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 \
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
-DWITH_TESTS=OFF
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# rename to keepassx2
|
|
rename keepassx keepassx2 $PKG/usr/share/icons/hicolor/*/*/keepassx.png
|
|
}
|