summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-16 00:29:02 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-16 00:29:02 -0500
commit2375ec2f90228e12224be4915e5e2bf077552df0 (patch)
tree14fc64903b4e36eefa170336b1e9e5fdd1dbd708
parentd758505b55db086687a55e6b285e3731952b93f9 (diff)
libgcrypt15: add new package to [pcr]
-rw-r--r--pcr/libgcrypt15/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/pcr/libgcrypt15/PKGBUILD b/pcr/libgcrypt15/PKGBUILD
new file mode 100644
index 000000000..e1a66c755
--- /dev/null
+++ b/pcr/libgcrypt15/PKGBUILD
@@ -0,0 +1,54 @@
+# Contributor (Arch): "UnCO" Lin <trash__box <_at_> 163.com>
+# Contributor (Arch): Andreas Radke <andyrtr <_at_> archlinux.org>
+# Maintainer : Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=libgcrypt15
+_pkgname=libgcrypt
+pkgver=1.5.4
+_apiver=11.8.3
+pkgrel=4
+pkgdesc="General purpose cryptographic library based on the code from GnuPG"
+arch=(any)
+url="http://www.gnupg.org"
+license=('LGPL')
+depends=()
+source=(
+ ftp://ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ # HTTP MIRRORS
+ # http://gd.tuwien.ac.at/privacy/gnupg/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ # http://artfiles.org/gnupg.org/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ # http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ # http://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ # http://www.ring.gr.jp/pub/net/gnupg/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ #
+ # Currently, this mirror returns 403
+ # http://mirrors.dotsrc.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
+ debian_security_patches.patch
+)
+sha1sums=('bdf4b04a0d2aabc04ab3564fbe38fd094135aa7a'
+ 'eb1b1c3a8afd6705573455b9259ac6ece961d1b3')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ patch -Np1 -i "$srcdir"/debian_security_patches.patch
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ ./configure --prefix=/usr \
+ --disable-static \
+ --disable-padlock-support
+ make
+}
+
+# check() {
+ # cd ${_pkgname}-${pkgver}
+ # make check
+# }
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ install -Dm755 src/.libs/libgcrypt.so.${_apiver} "$pkgdir/usr/lib/libgcrypt.so.${_apiver}"
+ cd "$pkgdir/usr/lib"
+ ln -s libgcrypt.so.${_apiver} libgcrypt.so.11
+}