# Maintainer: Natanael Copa pkgname=libgcrypt pkgver=1.7.1 pkgrel=0 pkgdesc="general purpose crypto library based on the code used in GnuPG" url="http://www.gnupg.org" arch="all" license="LGPL" depends= depends_dev="libgpg-error-dev" makedepends="$depends_dev texinfo" subpackages="$pkgname-dev $pkgname-doc" source="ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$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 | x86_64) _arch_configure="--enable-padlock-support" ;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ $_arch_configure \ || return 1 make || return 1 } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm -f ${pkgdir}/usr/share/info/dir } md5sums="8b8e002bcab29c1f1f1940ada831eb49 libgcrypt-1.7.1.tar.bz2" sha256sums="450d9cfcbf1611c64dbe3bd04b627b83379ef89f11406d94c8bba305e36d7a95 libgcrypt-1.7.1.tar.bz2" sha512sums="08ca7de8b6324d1119935b1f400b0ef55e761d42178a4daa8077d36072e5f0987ec6e7834a98c62f1a06261b1b99edc45b3041a873e284a002d8486ffc3347f5 libgcrypt-1.7.1.tar.bz2"