mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 15:29:02 +08:00
33 lines
753 B
Bash
33 lines
753 B
Bash
|
pkgname=p11-kit
|
||
|
pkgver=0.21.3
|
||
|
pkgrel=1
|
||
|
pkgdesc="Library to work with PKCS#11 modules"
|
||
|
arch=(i686 x86_64)
|
||
|
url="http://p11-glue.freedesktop.org"
|
||
|
license=('BSD')
|
||
|
depends=('glibc' 'libtasn1' 'libffi')
|
||
|
source=($url/releases/$pkgname-$pkgver.tar.gz{,.sig})
|
||
|
md5sums=('6db518aa96f929182ee4d364f4f0c5df'
|
||
|
'SKIP')
|
||
|
|
||
|
build() {
|
||
|
cd $pkgname-$pkgver
|
||
|
./configure --prefix=/usr --sysconfdir=/etc \
|
||
|
--with-module-path=/usr/lib/pkcs11 \
|
||
|
--with-trust-paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd $pkgname-$pkgver
|
||
|
make check
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname-$pkgver
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|