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
|
2022-03-22 20:10:16 +01:00
|
|
|
# Depends on: argon2 botan libgcrypt minizip pcsclite qrencode qt5 yubikey-personalization
|
2022-10-30 00:13:44 +00:00
|
|
|
# Optional: asciidoctor xorg-libxtst
|
2019-06-11 23:45:45 +02:00
|
|
|
|
|
|
|
name=keepassxc
|
2023-08-16 21:19:15 +02:00
|
|
|
version=2.7.6
|
2019-06-11 23:45:45 +02:00
|
|
|
release=1
|
2021-06-18 10:22:52 +00:00
|
|
|
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz)
|
2019-06-11 23:45:45 +02:00
|
|
|
|
|
|
|
build() {
|
2021-06-18 10:22:52 +00:00
|
|
|
prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
|
|
prt-get isinst ccache && PKGMK_KEEPASSXC+=' -D WITH_CCACHE=ON'
|
2021-01-15 10:09:35 +00:00
|
|
|
|
2021-06-18 10:22:52 +00:00
|
|
|
prt-get isinst asciidoctor && PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=ON' || PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=OFF'
|
2022-10-30 00:13:44 +00:00
|
|
|
prt-get isinst xorg-libxtst || PKGMK_KEEPASSXC+=' -D WITH_XC_X11=OFF'
|
2021-06-09 08:52:01 +00:00
|
|
|
|
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" \
|
2022-03-22 20:10:16 +01:00
|
|
|
-D KEEPASSXC_BUILD_TYPE=Release \
|
2020-11-08 11:28:41 +00:00
|
|
|
-D WITH_XC_ALL=ON \
|
|
|
|
-D WITH_TESTS=OFF \
|
2022-03-22 20:10:16 +01:00
|
|
|
-D WITH_APP_BUNDLE=OFF \
|
|
|
|
-D WITH_XC_UPDATECHECK=OFF \
|
2020-11-08 11:28:41 +00:00
|
|
|
-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
|
2021-06-18 10:22:52 +00:00
|
|
|
rm -rf $PKG/usr/share/keepassxc/docs
|
2019-06-11 23:45:45 +02:00
|
|
|
}
|