diff options
Diffstat (limited to 'main/p11-kit/APKBUILD')
-rw-r--r-- | main/p11-kit/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/p11-kit/APKBUILD b/main/p11-kit/APKBUILD new file mode 100644 index 0000000000..537ea51f4e --- /dev/null +++ b/main/p11-kit/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=p11-kit +pkgver=0.9 +pkgrel=0 +pkgdesc="Library for loading and sharing PKCS#11 modules" +url="http://p11-glue.freedesktop.org/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-dev $pkgname-doc" +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 +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="029aa2a3a103e7eb81b4aa731b93539e p11-kit-0.9.tar.gz" |