desktop/keepassxc/PKGBUILD
2018-01-02 10:19:34 +00:00

47 lines
1.3 KiB
Bash

pkgname=keepassxc
pkgver=2.2.4
pkgrel=1
pkgdesc="KeePassXC is a cross platform community driven port of the windows application Keepass Password Safe"
arch=('x86_64')
url="https://keepassxc.org/"
license=('GPL2')
screenshot="http://i1-win.softpedia-static.com/screenshots/KeePassXC_1.png"
depends=('hicolor-icon-theme' 'libxtst' 'qt5-x11extras' 'libgcrypt' 'zlib' 'libxi' 'yubikey-personalization')
makedepends=('cmake' 'qt5-tools')
provides=('keepassx' 'keepassx-reboot')
conflicts=('keepassx-reboot')
replaces=('keepassx-reboot')
install=($pkgname.install)
source=("https://github.com/keepassxreboot/$pkgname/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz")
sha256sums=('e52fa32cb39af3c64ddd651481b7963b1206830687fb7d4c9f20ad5d6ac0d3dd')
prepare() {
cd $pkgname-$pkgver
mkdir -p build
}
build() {
cd $pkgname-$pkgver/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DWITH_GUI_TESTS=OFF \
-DWITH_XC_AUTOTYPE=ON \
-DWITH_XC_HTTP=ON \
-DWITH_XC_YUBIKEY=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
}
#check() {
# cd $pkgname-$pkgver/build
# make test
#}
package() {
cd $pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}