summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f67d2c0136d0984ff82e341c239ae8c89e82cc12 (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
# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
pkgname=openssl-pkcs11-export
pkgver=1.0.0
pkgrel=1
pkgdesc="PKCS#11 software token providing access to OpenSSL 'engine' keys"
arch=(i686 x86_64)
url="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/openssl-pkcs11-export.git"
license=(LGPL2.1)
depends=(openssl)
makedepends=(asciidoc git gnutls p11-kit)
_commit=310acdb8a592bde39ee2a20d696410ef02df4108
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/jejb/openssl-pkcs11-export.git#commit=$_commit")
sha256sums=('SKIP')

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

prepare() {
  cd $pkgname
  autoreconf -fi
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}

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