Skip to content

Instantly share code, notes, and snippets.

@ogier
Created July 18, 2012 21:54
Show Gist options
  • Save ogier/3139179 to your computer and use it in GitHub Desktop.
Save ogier/3139179 to your computer and use it in GitHub Desktop.
keepassx-git updated AUR files
[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;
#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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment