summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-25 03:28:39 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-25 03:28:39 -0500
commit485dd23d9a8832f844e972cc8695650a301bb3e9 (patch)
tree8caf911679cdc43859c6011ce802c793be55be1d
parentd68bf39405b5b4392b4c2a49251436318a1517bf (diff)
downloadpackages-485dd23d9a8832f844e972cc8695650a301bb3e9.tar.gz
packages-485dd23d9a8832f844e972cc8695650a301bb3e9.tar.bz2
packages-485dd23d9a8832f844e972cc8695650a301bb3e9.tar.xz
packages-485dd23d9a8832f844e972cc8695650a301bb3e9.zip
system/libgcrypt: pull in for libxslt
-rw-r--r--system/libgcrypt/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/system/libgcrypt/APKBUILD b/system/libgcrypt/APKBUILD
new file mode 100644
index 000000000..3b3793b7b
--- /dev/null
+++ b/system/libgcrypt/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libgcrypt
+pkgver=1.8.3
+pkgrel=0
+pkgdesc="GnuPG cryptography library"
+url="http://www.gnupg.org"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="libgpg-error-dev"
+makedepends="$depends_dev texinfo"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2"
+builddir="$srcdir"/$pkgname-$pkgver
+
+build () {
+ cd "$builddir"
+
+ local _arch_configure=
+ case "$CARCH" in
+ arm*)
+ # disable arm assembly for now as it produces TEXTRELs
+ export gcry_cv_gcc_arm_platform_as_ok=no
+ ;;
+ x86 | pmmx | x86_64)
+ _arch_configure="--enable-padlock-support"
+ ;;
+ esac
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static \
+ $_arch_configure
+
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+ rm -f ${pkgdir}/usr/share/info/dir
+}
+
+sha512sums="8c873204303f173dd3f49817a81035c1d504b2fc885965c9bc074a6e3fb108ceb6dca366d85e840a40712a6890fc325018ea9b8c1b7b8804c51c44b296cb96a0 libgcrypt-1.8.3.tar.bz2"