diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-06-12 11:59:15 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-06-12 11:59:15 -0300 |
commit | cbc2a952a88d4d48b28cbaea8a6a6e3f6b2dd960 (patch) | |
tree | 72601ff8619474f1032463e9164996e5902958e4 /pcr/softhsm/PKGBUILD | |
parent | 8adf2501dd50660a3f37b2032b59242f935b1897 (diff) | |
parent | 916db147cf27a516cd2d6c43ca05e04dde01ddd4 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/softhsm/PKGBUILD')
-rw-r--r-- | pcr/softhsm/PKGBUILD | 46 |
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" +} |