diff options
Diffstat (limited to 'keepassxc/Pkgfile')
-rw-r--r-- | keepassxc/Pkgfile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/keepassxc/Pkgfile b/keepassxc/Pkgfile index 38b97bd9f..78755cdea 100644 --- a/keepassxc/Pkgfile +++ b/keepassxc/Pkgfile @@ -2,19 +2,18 @@ # URL: https://keepassxc.org/ # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: argon2 libgcrypt libsodium qrencode qt5 yubikey-personalization -# Optional: quazip5 +# Optional: asciidoctor quazip5 name=keepassxc -version=2.6.4 +version=2.6.6 release=1 -source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz - keepassxc-quazip1.patch) +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+=' -D WITH_CCACHE=ON' + 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' - patch -Np1 -d $name-$version -i $SRC/keepassxc-quazip1.patch + prt-get isinst asciidoctor && PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=ON' || PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=OFF' cmake -S $name-$version -B build -G Ninja $PKGMK_KEEPASSXC \ -D CMAKE_INSTALL_PREFIX=/usr \ @@ -23,11 +22,11 @@ build() { -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -D WITH_XC_ALL=ON \ - -D WITH_XC_DOCS=OFF \ -D WITH_TESTS=OFF \ -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build rm -r $PKG/usr/share/keepassxc/translations + rm -rf $PKG/usr/share/keepassxc/docs } |