summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbaf7cd1629047f68608c6282ef17b8961558ca4 (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
47
48
pkgname=mastercard-pkcs11-tools
pkgver=2.3.0
pkgrel=1
pkgdesc="Tools to manage objects on PKCS#11 cryptographic tokens"
url="https://github.com/Mastercard/pkcs11-tools"
arch=(x86_64)
depends=(openssl)
makedepends=(
  autoconf-archive
  bison
  flex
)
_commit=57718930c0571afb9bafed0505fd624cf9b3c9c3
source=("git+https://github.com/Mastercard/pkcs11-tools#commit=$_commit"
        "git+https://git.savannah.gnu.org/git/gnulib.git"
        "oasis-pkcs11::git+https://github.com/oasis-tcs/pkcs11")
sha256sums=('SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd pkcs11-tools
  git describe --tags | sed "s/^v//; s/-/.r/; s/-/./"
}

prepare() {
  cd pkcs11-tools

  git submodule init .gnulib
  git submodule init include/oasis-pkcs11

  git submodule set-url .gnulib "$srcdir/gnulib"
  git submodule set-url include/oasis-pkcs11 "$srcdir/oasis-pkcs11"
}

build() {
  cd pkcs11-tools
  sh -ex ./bootstrap.sh
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd pkcs11-tools
  make DESTDIR="$pkgdir" install
}

# vim: ts=2:sw=2:et