summaryrefslogtreecommitdiff
path: root/keepassxc/Pkgfile
blob: 183dfb58eba40bbfb15cded1ab4831a794530443 (plain)
    1 # Description: KeePass Cross-Platform Community Edition
    2 # URL: https://keepassxc.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: argon2 botan libgcrypt minizip pcsclite qrencode qt5 yubikey-personalization
    5 # Optional: asciidoctor xorg-libxtst
    6 
    7 name=keepassxc
    8 version=2.7.4
    9 release=1
   10 source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz)
   11 
   12 build() {
   13   prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
   14   prt-get isinst ccache && PKGMK_KEEPASSXC+=' -D WITH_CCACHE=ON'
   15 
   16   prt-get isinst asciidoctor && PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=ON' || PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=OFF'
   17   prt-get isinst xorg-libxtst || PKGMK_KEEPASSXC+=' -D WITH_XC_X11=OFF'
   18 
   19   cmake -S $name-$version -B build -G Ninja $PKGMK_KEEPASSXC \
   20     -D CMAKE_INSTALL_PREFIX=/usr \
   21     -D CMAKE_INSTALL_LIBDIR=lib \
   22     -D CMAKE_BUILD_TYPE=Release \
   23     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   24     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   25     -D KEEPASSXC_BUILD_TYPE=Release \
   26     -D WITH_XC_ALL=ON \
   27     -D WITH_TESTS=OFF \
   28     -D WITH_APP_BUNDLE=OFF \
   29     -D WITH_XC_UPDATECHECK=OFF \
   30     -Wno-dev
   31   cmake --build build
   32   DESTDIR=$PKG cmake --install build
   33 
   34   rm -r $PKG/usr/share/keepassxc/translations
   35   rm -rf $PKG/usr/share/keepassxc/docs
   36 }

Generated by cgit