summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2017-07-23 06:17:06 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2017-07-23 06:17:06 -0700
commitff5c3197d17dfe3a140058a24a5ce3fe939f3c5c (patch)
tree4d2a56ec36c15ffdb6233419be5c0861b7a8c511
downloadkeepassxc-ff5c3197d17dfe3a140058a24a5ce3fe939f3c5c.tar.xz
Initial commit
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..81e2279
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=keepassxc
+pkgver=2.2.0
+pkgrel=2.arcfour1
+pkgdesc="Cross-platform community-driven port of Keepass password manager"
+arch=(x86_64 i686)
+url="https://keepassxc.org/"
+license=(GPL)
+depends=(hicolor-icon-theme libxtst qt5-x11extras)
+makedepends=(cmake qt5-tools)
+source=("https://github.com/keepassxreboot/$pkgname/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz"{,.sig})
+sha256sums=(
+ "71c47ebd9a661fc439c61566e4a4aa482e4d463c0eaa4f7562e7216eb0327e59"
+ "SKIP"
+)
+validpgpkeys=('BF5A669F2272CF4324C1FDA8CFB4C2166397D0D2') # KeePassXC Release <release@keepassxc.org>
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DWITH_XC_AUTOTYPE=ON \
+ -DWITH_XC_HTTP=OFF \
+ -DWITH_XC_YUBIKEY=OFF
+ make
+}
+
+check() {
+ cd build
+ # Fails on i686 - https://github.com/keepassxreboot/keepassxc/issues/327
+ if [ $CARCH == x86_64 ]; then
+ make test
+ fi
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}