# Maintainer: Natanael Copa pkgname=libgcrypt pkgver=1.7.5 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/$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 | 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="74c8b4b2118946dcbfec5ff1cbf97177 libgcrypt-1.7.5.tar.bz2" sha256sums="d1fea4128beef2bb30a470af6bafabccc503ced350534fb9dd8f5a53ffbae800 libgcrypt-1.7.5.tar.bz2" sha512sums="575cc6cda3a7c3770e62089d5de1d26de3136a1360b9913814727fdef1c803890d77c57f61621687419d7e572ffd3bc11090cc8899cc4b6af2908ed38324405c libgcrypt-1.7.5.tar.bz2"