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 14:06:08 +00:00
|
|
|
# Depends on: argon2 libgcrypt libsodium qrencode qt5 yubikey-personalization
|
2020-10-06 16:09:55 +00:00
|
|
|
# Optional: quazip5
|
2019-06-11 23:45:45 +02:00
|
|
|
|
|
|
|
name=keepassxc
|
2021-02-01 09:29:37 +00:00
|
|
|
version=2.6.4
|
2019-06-11 23:45:45 +02:00
|
|
|
release=1
|
2021-01-15 10:09:35 +00:00
|
|
|
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 11:28:41 +00:00
|
|
|
[[ -e /usr/lib/ccache ]] && PKGMK_KEEPASSXC+=' -D WITH_CCACHE=ON'
|
2021-01-15 10:09:35 +00:00
|
|
|
|
|
|
|
patch -Np1 -d $name-$version -i $SRC/keepassxc-quazip1.patch
|
|
|
|
|
2020-11-08 11:28:41 +00: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-06 23:55:27 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:28:41 +00:00
|
|
|
-D WITH_XC_ALL=ON \
|
|
|
|
-D WITH_XC_DOCS=OFF \
|
|
|
|
-D WITH_TESTS=OFF \
|
|
|
|
-Wno-dev
|
2020-07-07 14:06:08 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
|
|
|
|
rm -r $PKG/usr/share/keepassxc/translations
|
2019-06-11 23:45:45 +02:00
|
|
|
}
|