diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-06 22:29:29 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-18 14:03:34 +0000 |
commit | fcac7d246dcc54f1e1e3d2126adc0bab74f7e796 (patch) | |
tree | 9e0c0cbebadefc68892c979c3cfdbbe2e2bc3fd9 /main/p11-kit | |
parent | c601babb99fb2f91d5cd0fbb5216bd191d0ba9c4 (diff) | |
download | aports-fcac7d246dcc54f1e1e3d2126adc0bab74f7e796.tar.bz2 aports-fcac7d246dcc54f1e1e3d2126adc0bab74f7e796.tar.xz |
main/p11-kit: modernise, add test suite
Diffstat (limited to 'main/p11-kit')
-rw-r--r-- | main/p11-kit/APKBUILD | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/main/p11-kit/APKBUILD b/main/p11-kit/APKBUILD index b1e353e3ac..45a3e87220 100644 --- a/main/p11-kit/APKBUILD +++ b/main/p11-kit/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=p11-kit pkgver=0.23.2 -pkgrel=1 +pkgrel=2 pkgdesc="Library for loading and sharing PKCS#11 modules" url="http://p11-glue.freedesktop.org/" arch="all" @@ -13,34 +13,28 @@ makedepends="libtasn1-dev libffi-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-trust" source="http://p11-glue.freedesktop.org/releases/$pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc \ --prefix=/usr \ --mandir=/usr/share/man \ - --with-trust-paths=/etc/ssl/certs/ca-certificates.crt \ - || return 1 - make || return 1 + --with-trust-paths=/etc/ssl/certs/ca-certificates.crt + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } trust() { @@ -50,13 +44,11 @@ trust() { "$subpkgdir"/usr/lib/pkcs11 mv "$pkgdir"/usr/lib/p11-kit/trust-extract-compat \ - "$subpkgdir"/usr/lib/p11-kit/ || return 1 + "$subpkgdir"/usr/lib/p11-kit/ mv "$pkgdir"/usr/share/p11-kit/modules/p11-kit-trust.module \ - "$subpkgdir"/usr/share/p11-kit/modules/ || return 1 + "$subpkgdir"/usr/share/p11-kit/modules/ mv "$pkgdir"/usr/lib/pkcs11/p11-kit-trust.so \ - "$subpkgdir"/usr/lib/pkcs11/ || return 1 + "$subpkgdir"/usr/lib/pkcs11/ } -md5sums="738af2442331fc22f440df9bee9b062a p11-kit-0.23.2.tar.gz" -sha256sums="ba726ea8303c97467a33fca50ee79b7b35212964be808ecf9b145e9042fdfaf0 p11-kit-0.23.2.tar.gz" sha512sums="b665d89f0d752a41b01ec53e29c801c4fdcaf3f21fce524984b10acef0477ad5dbac085edd35ffb747423d0e1e09660b8d29501c979cf54937d3b9d2561cf18f p11-kit-0.23.2.tar.gz" |