diff options
author | Michael Lass | 2015-06-08 20:52:04 +0200 |
---|---|---|
committer | Michael Lass | 2015-06-08 20:52:04 +0200 |
commit | 211bcd61c4cc49b0dcecfaee78a30b63cfadad83 (patch) | |
tree | fc3e1a2a7550112db53f1c5588ad18882554adc0 | |
download | aur-211bcd61c4cc49b0dcecfaee78a30b63cfadad83.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | keepassx2.install | 13 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6a16313c3314 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = keepassx2 + pkgdesc = Crossplatform port of Windows' application ''KeePass Password Safe'' + pkgver = alpha6 + pkgrel = 2 + url = https://www.keepassx.org/dev/ + install = keepassx2.install + arch = i686 + arch = x86_64 + license = GPL2 + license = GPL3 + makedepends = intltool + makedepends = cmake + depends = shared-mime-info + depends = libxtst + depends = qt4 + conflicts = keepassx + conflicts = keepassx2-git + options = !emptydirs + source = https://www.keepassx.org/dev/attachments/download/69/keepassx-2.0-alpha6.tar.gz + sha256sums = 592f9995b13c4f84724fb24a0078162246397eedccd467daaf0fd3608151f2b0 + +pkgname = keepassx2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cf094135b4f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Michael Laß <bevan@bi-co.net> +# Contributor: Marat "Morion" Talipov <morion.self@gmail.com> + +# This PKGBUILD is maintained on github: +# https://github.com/michaellass/AUR + +pkgname=keepassx2 +pkgver=alpha6 +pkgrel=2 +pkgdesc="Crossplatform port of Windows' application ''KeePass Password Safe''" +arch=('i686' 'x86_64') +url="https://www.keepassx.org/dev/" +license=('GPL2' 'GPL3') +depends=('shared-mime-info' 'libxtst' 'qt4') +makedepends=('intltool' 'cmake') +conflicts=('keepassx' 'keepassx2-git') +options=(!emptydirs) +install=keepassx2.install +source=("https://www.keepassx.org/dev/attachments/download/69/keepassx-2.0-${pkgver}.tar.gz") +sha256sums=('592f9995b13c4f84724fb24a0078162246397eedccd467daaf0fd3608151f2b0') + +_cmake_keys="-DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_LIBDIR=/usr/lib + -DCMAKE_BUILD_TYPE=Release" + +build() { + cd "$srcdir/keepassx-2.0-$pkgver" + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake $_cmake_keys .. + make +} + +package() { + cd "$srcdir/keepassx-2.0-$pkgver/build" + make DESTDIR="${pkgdir}" install +} diff --git a/keepassx2.install b/keepassx2.install new file mode 100644 index 000000000000..34ab919aaf96 --- /dev/null +++ b/keepassx2.install @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |