contrib/keepassxc/Pkgfile

34 lines
1.1 KiB
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
2020-10-06 18:09:55 +02:00
# Optional: quazip5
2019-06-11 23:45:45 +02:00
name=keepassxc
version=2.6.4
2019-06-11 23:45:45 +02:00
release=1
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz
keepassxc-quazip1.patch)
2019-06-11 23:45:45 +02:00
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-11-08 12:28:41 +01:00
[[ -e /usr/lib/ccache ]] && PKGMK_KEEPASSXC+=' -D WITH_CCACHE=ON'
2021-01-15 11:09:35 +01:00
patch -Np1 -d $name-$version -i $SRC/keepassxc-quazip1.patch
2020-11-08 12:28:41 +01:00
cmake -S $name-$version -B build -G Ninja $PKGMK_KEEPASSXC \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:55:27 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 12:28:41 +01:00
-D WITH_XC_ALL=ON \
-D WITH_XC_DOCS=OFF \
-D WITH_TESTS=OFF \
-Wno-dev
2020-07-07 16:06:08 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/keepassxc/translations
2019-06-11 23:45:45 +02:00
}