summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ed5b01ccdb8d9f162ddf7989fcce83538a6b947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Tajidin Abd <tajidinabd at archlinux dot us>
# Contributor: Antonio Rojas

pkgname=qca-qt5-git
pkgver=v2.2.1.2.g0be2a2c
pkgrel=1
pkgdesc="Qt Cryptographic Architecture. Qt5 Build (GIT Version)"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://delta.affinix.com/qca/"
depends=('qt5-base' )
makedepends=('cmake' 'doxygen' 'git' 'botan' 'pkcs11-helper' 'libsasl' 'libgcrypt')
optdepends=('botan: Botan plugin'
            'pkcs11-helper: PKCS11 plugin'
            'nss: nss plugin'
            'libsasl: SASL plugin'
            'libgcrypt: gcrypt plugin')
conflicts=('qca-qt5')
provides=('qca-qt5''qca')
source=("git://anongit.kde.org/qca.git")
md5sums=('SKIP')

pkgver() {
  cd qca
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
  sed 's|_BSD_SOURCE|_DEFAULT_SOURCE|g' -i qca/CMakeLists.txt
}

build() {
  cd build
  cmake ../qca \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DQCA_INSTALL_IN_QT_PREFIX=ON \
    -DQCA_SUFFIX=qt5 \
    -DBUILD_TESTS=OFF
  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}