Skip to content

Commit

Permalink
keepassxc-git: update for Botan and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Chih-Hsuan Yen committed Apr 6, 2021
1 parent 0c0964d commit 947e560
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions archlinuxcn/keepassxc-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Maintainer: Daniel Landau <[email protected]>
# Maintainer: Chih-Hsuan Yen <[email protected]>
# Contributor: Daniel Landau <[email protected]>
# Contributor: Maxqia <[email protected]>

# The following people have contributed to keepassx-git package
Expand All @@ -9,7 +10,7 @@

pkgname=keepassxc-git
_gitname=keepassxc
pkgver=2.6.3.r106.g86ddd702
pkgver=2.6.3.r108.ged0ece30
pkgrel=1
pkgdesc="Cross-platform community-driven port of KeePass Password Safe"
arch=('i686' 'x86_64')
Expand All @@ -18,7 +19,7 @@ license=('GPL2')
depends=('qt5-base' 'qt5-x11extras' 'qt5-translations' 'qt5-imageformats'
'libxtst' 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils'
'yubikey-personalization' 'qt5-svg' 'qrencode' 'quazip'
'libsodium' 'libgcrypt' 'argon2' 'zlib')
'zlib' 'botan')
makedepends=('git' 'intltool' 'cmake' 'qt5-tools' 'asciidoctor')
checkdepends=('xorg-server-xvfb' 'xclip')
provides=(org.freedesktop.secrets)
Expand All @@ -30,26 +31,21 @@ md5sums=('SKIP')

pkgver() {
cd "${_gitname}"
git describe --long | sed 's/^FOO-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
cd "${_gitname}"
mkdir -p build
sed -i'' -e 's:/usr/local/share/man/:${CMAKE_INSTALL_MANDIR}/:' src/cli/CMakeLists.txt
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${_gitname}/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
cd "${_gitname}"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DWITH_GUI_TESTS=ON \
-DWITH_XC_ALL=ON \
-DWITH_XC_KEESHARE_SECURE=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make -C build
}

#check() {
Expand Down

0 comments on commit 947e560

Please sign in to comment.