Guest User

Untitled

a guest
Mar 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. # Maintainer: Balló György <ballogyor+arch at gmail dot com>
  2. # Maintainer: Bruno Pagani <[email protected]>
  3. # Contributor (PR#2830): Joan Bruguera Micó <[email protected]>
  4.  
  5. pkgname=keepassxc
  6. pkgver=2.4.0
  7. pkgrel=500
  8. pkgdesc="Cross-platform community-driven port of Keepass password manager"
  9. arch=(x86_64)
  10. url="https://keepassxc.org/"
  11. license=(GPL)
  12. depends=(hicolor-icon-theme libgcrypt argon2 libsodium
  13.          libxtst qt5-svg qt5-x11extras
  14.          yubikey-personalization curl qrencode)
  15. makedepends=(git cmake qt5-tools)
  16. _tag=302f7a76f70f1e09318f903b3e38d4d0c504bee6 # git rev-parse ${pkgver}
  17. source=("git+https://github.com/keepassxreboot/keepassxc#tag=${_tag}?signed"
  18.         "https://patch-diff.githubusercontent.com/raw/keepassxreboot/keepassxc/pull/2830.patch")
  19. sha256sums=('SKIP' 'SKIP')
  20. validpgpkeys=('BF5A669F2272CF4324C1FDA8CFB4C2166397D0D2'  # KeePassXC Release <[email protected]>
  21.               '3489040C1F0C3EEAB8D556A5440FC65F2E0C6E01') # Jonathan White <[email protected]>
  22.  
  23. prepare() {
  24.     mkdir -p build
  25.  
  26.     # Apply PR#2830 from GitHub
  27.     cd $pkgname
  28.     patch -p1 < ../2830.patch
  29. }
  30.  
  31. build() {
  32.     cd build
  33.     cmake ../${pkgname} \
  34.         -DCMAKE_BUILD_TYPE=Release \
  35.         -DCMAKE_INSTALL_PREFIX=/usr \
  36.         -DCMAKE_INSTALL_LIBDIR=lib \
  37.         -DWITH_XC_ALL=ON
  38.     make
  39. }
  40.  
  41. check() {
  42.     cd build
  43.     make test
  44. }
  45.  
  46. package() {
  47.     cd build
  48.     make DESTDIR="${pkgdir}" install
  49. }
Advertisement
Add Comment
Please, Sign In to add comment