forked from ports/contrib
27 lines
913 B
Plaintext
27 lines
913 B
Plaintext
# Description: KeePass Cross-Platform Community Edition
|
|
# URL: https://keepassxc.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: argon2 libgcrypt libsodium qrencode qt5 yubikey-personalization
|
|
# Optional: quazip5
|
|
|
|
name=keepassxc
|
|
version=2.6.2
|
|
release=1
|
|
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz)
|
|
|
|
build() {
|
|
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
[[ -e /usr/lib/ccache ]] && PKGMK_KEEPASSXC=' -DWITH_CCACHE=ON'
|
|
cmake -S$name-$version -Bbuild -GNinja $PKGMK_KEEPASSXC \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DWITH_XC_ALL=ON \
|
|
-DWITH_XC_DOCS=OFF \
|
|
-DWITH_TESTS=OFF
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/share/keepassxc/translations
|
|
}
|