keepassx2.paketlendi

This commit is contained in:
milisarge 2017-04-25 22:51:27 +03:00
parent fe4ce3a837
commit 4b6f64d329
2 changed files with 33 additions and 20 deletions

View File

@ -1,20 +0,0 @@
# Description: Şifre yöneticisi
# URL: http://www.keepassx.org/
# Packager: milisarge
# Maintainer: http://sourceforge.net/projects/keepassx/
# Depends on: qt4 xorg-libxtst
name=keepassx
version=0.4.3
release=3
source=(https://www.keepassx.org/releases/$version/keepassx-$version.tar.gz)
build ()
{
source setqt4
cd keepassx-$version
sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
qmake PREFIX=/usr
make
make INSTALL_ROOT="$PKG" install
}

View File

@ -0,0 +1,33 @@
# Description: Şifre yöneticisi
# URL: http://www.keepassx.org/
# Packager: milisarge
# Depends on: qt4 libgcrypt
name=keepassx2
version=2.0.3
release=1
source=(https://github.com/keepassx/keepassx/archive/$version.tar.gz)
build() {
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_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
}