contrib/keepassxc/Pkgfile

36 lines
1.2 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
# Depends on: argon2 botan libgcrypt minizip pcsclite qrencode qt5 yubikey-personalization
# Optional: asciidoctor
2019-06-11 23:45:45 +02:00
name=keepassxc
version=2.7.0
2019-06-11 23:45:45 +02:00
release=1
2021-06-18 12:22:52 +02: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 12:22:52 +02: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 11:09:35 +01:00
2021-06-18 12:22:52 +02:00
prt-get isinst asciidoctor && PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=ON' || PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=OFF'
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" \
-D KEEPASSXC_BUILD_TYPE=Release \
2020-11-08 12:28:41 +01:00
-D WITH_XC_ALL=ON \
-D WITH_TESTS=OFF \
-D WITH_APP_BUNDLE=OFF \
-D WITH_XC_UPDATECHECK=OFF \
2020-11-08 12:28:41 +01:00
-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
2021-06-18 12:22:52 +02:00
rm -rf $PKG/usr/share/keepassxc/docs
2019-06-11 23:45:45 +02:00
}