# $Id: PKGBUILD 32861 2009-04-01 19:16:30Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=libgcrypt
pkgver=1.4.4
pkgrel=1
pkgdesc="a general purpose crypto library based on the code used"
arch=(i686 x86_64)
url="http://www.gnupg.org"
license=('LGPL')
groups=('base')
depends=('libgpg-error>=1.6' 'texinfo')
options=(!libtool)
source=(#ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2
	ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgcrypt/${pkgname}-${pkgver}.tar.bz2)
md5sums=('34105aa927e23c217741966496b97e67')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-padlock-support --disable-static
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
  rm -f ${pkgdir}/usr/share/info/dir
}