contrib/keepassxc/Pkgfile

23 lines
754 B
Plaintext
Raw Normal View History

2019-06-11 23:45:45 +02:00
# Description: KeePass Cross-Platform Community Edition
# URL: https://keepassxc.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
2020-07-07 16:06:08 +02:00
# Depends on: argon2 libgcrypt libsodium qrencode qt5 yubikey-personalization
2019-06-11 23:45:45 +02:00
name=keepassxc
2020-07-07 16:06:08 +02:00
version=2.6.0
2019-06-11 23:45:45 +02:00
release=1
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz)
build() {
2019-10-27 23:57:24 +01:00
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
2020-07-07 16:06:08 +02:00
cmake -S$name-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-06-11 23:45:45 +02:00
-DCMAKE_BUILD_TYPE=Release \
-DWITH_XC_ALL=ON \
2020-07-07 16:06:08 +02:00
-DWITH_XC_DOCS=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/keepassxc/translations
2019-06-11 23:45:45 +02:00
}