milis/talimatname/genel/k/keepassx2/talimat

35 lines
902 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Şifre yöneticisi
# URL: http://www.keepassx.org/
# Paketçi: milisarge
# Gerekler: qt4 libgcrypt
# Grup: sistem güvenlik
isim=keepassx2
surum=2.0.3
devir=1
kaynak=(https://github.com/keepassx/keepassx/archive/$surum.tar.gz)
derle() {
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 ../*-$surum/ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DWITH_TESTS=OFF
make
make DESTDIR=$PKG install
rename keepassx keepassx2 $PKG/usr/share/icons/hicolor/*/*/keepassx.png
}