public
Created

keepassx-git updated AUR files

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#Maintainer: Paolo Stivanin <admin AT polslinux DOT it>
 
pkgname=keepassx-git
pkgver=20120718
pkgrel=1
pkgdesc="The newest KeepassX v2!"
arch=('i686' 'x86_64')
license=('GPL')
depends=('qt')
makedepends=('git' 'intltool' 'cmake')
url="http://gitorious.org/keepassx"
provides=('keepassx=$pkgver')
source=('keepassx2.desktop')
md5sums=('18353fecb6006e2370370a53eb02d715')
 
_gitroot="git://gitorious.org/keepassx"
_gitname="keepassx"
 
build() {
cd $srcdir
msg "Connecting to the GIT server...."
 
if [[ -d $srcdir/$_gitname ]] ; then
cd $_gitname
git pull origin
msg "The local files are updated."
else
git clone $_gitroot/$_gitname.git
fi
 
msg "GIT checkout done"
msg "Starting make..."
 
cp -R $srcdir/$_gitname $srcdir/$_gitname-build
cd $srcdir/$_gitname-build
 
cmake -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_GUI_TESTS=ON
make DESTDIR=$pkgdir install
install -D -m 644 "$srcdir/keepassx2.desktop" "$pkgdir/usr/share/applications/keepassx2.desktop"
 
rm -rf $srcdir/$_gitname-build
}
keepassx2.desktop
1 2 3 4 5 6 7 8 9
[Desktop Entry]
Name=KeepassX v2
Comment=KeepassX v2 Password Manager
Exec=/opt/bin/keepassx %f
Icon=/opt/share/keepassx/icons/application/128x128/apps/keepassx.png
Terminal=false
Type=Application
Categories=Qt;Utility;Security;
MimeType=application/x-keepass;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.