summaryrefslogtreecommitdiff
path: root/multilib/lib32-p11-kit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-p11-kit/PKGBUILD')
-rw-r--r--multilib/lib32-p11-kit/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/multilib/lib32-p11-kit/PKGBUILD b/multilib/lib32-p11-kit/PKGBUILD
new file mode 100644
index 000000000..b9963e719
--- /dev/null
+++ b/multilib/lib32-p11-kit/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Florian Pritz <bluewind@xinu.at>
+# Contributor: Christoph Vigano <mail@cvigano.de>
+
+_pkgbasename=p11-kit
+pkgname=lib32-$_pkgbasename
+pkgver=0.9
+pkgrel=3
+pkgdesc="Library to work with PKCS#11 modules (32-bit)"
+arch=(i686 x86_64)
+url="http://p11-glue.freedesktop.org"
+license=('BSD')
+depends=(lib32-glibc $_pkgbasename)
+options=(!libtool)
+source=($url/releases/$_pkgbasename-$pkgver.tar.gz)
+md5sums=('029aa2a3a103e7eb81b4aa731b93539e')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ cd "$srcdir/$_pkgbasename-$pkgver"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc \
+ --with-module-path=/usr/lib32/pkcs11
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgbasename-$pkgver"
+ make DESTDIR="$pkgdir" install
+ rm -rf "${pkgdir}"/etc
+ rm -rf "${pkgdir}"/usr/{bin,include,share}
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}
+
+# vim:set ts=2 sw=2 et: