blob: b9963e719a09dddf25ac118d4677f8b2c2b16e4e (
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: 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:
|