summaryrefslogtreecommitdiff
path: root/pcr/softhsm/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-10 21:02:30 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-10 21:02:30 -0300
commitf5a5ca28e9d700f74c026a5d115bce2cac99a9c5 (patch)
treed3cd5aefb23e7251de18a7915193e1c5eb2e5c69 /pcr/softhsm/PKGBUILD
parentcd60ea424dd810bd1e4d18f4be103703eb2f3039 (diff)
downloadabslibre-f5a5ca28e9d700f74c026a5d115bce2cac99a9c5.tar.gz
abslibre-f5a5ca28e9d700f74c026a5d115bce2cac99a9c5.tar.bz2
abslibre-f5a5ca28e9d700f74c026a5d115bce2cac99a9c5.zip
opendnssec!
Diffstat (limited to 'pcr/softhsm/PKGBUILD')
-rw-r--r--pcr/softhsm/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/softhsm/PKGBUILD b/pcr/softhsm/PKGBUILD
new file mode 100644
index 000000000..f3fbcecaf
--- /dev/null
+++ b/pcr/softhsm/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Javier Torres <javitonino [at] gmail [dot] com>
+
+pkgname=softhsm
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="Software PKCS11 store"
+arch=('i686' 'x86_64')
+url="http://www.opendnssec.org/softhsm/"
+license=('custom' 'BSD')
+depends=('botan' 'sqlite3')
+backup=("etc/softhsm.conf")
+source=("http://www.opendnssec.org/files/source/${pkgname}-${pkgver}.tar.gz"{,.sig})
+sha1sums=('f09b6828776bcf9fef1dd46cfa7a495da01c7747'
+ 'SKIP')
+sha256sums=('f10319dfa651023dad3d0845d284ec08ef982c1fc1bdb55cf8a725f762961e97'
+ 'SKIP')
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # /usr/lib/softhsm -> /usr/bin (no subdirectory)
+ sed -i \
+ -e "s/full_libdir=\"\$full_libdir\/softhsm\"/#full_libdir=\"\$full_libdir\/softhsm\"/" \
+ -e "s/libdir=\$full_libdir/#libdir=\$full_libdir/" \
+ configure
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin \
+ --datarootdir=/usr/share \
+ --localstatedir=/var/lib \
+ --sysconfdir=/etc \
+ --with-botan=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}/" install
+
+ install -Dm0644 "LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}