blob: b9f22c513e65b3fcf1f5620a88afd66e462cfb2c (
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
37
|
# $Id: PKGBUILD 68876 2012-04-04 16:53:34Z bluewind $
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Christoph Vigano <mail@cvigano.de>
_pkgbasename=p11-kit
pkgname=lib32-$_pkgbasename
pkgver=0.12
pkgrel=1
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=('66baf7ddde982d1b7294d3bd63be7446')
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:
|