description="A general purpose crypto library based on the code used in GnuPG."
url="http://ftp.gnupg.org/gcrypt/libgcrypt/"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre B, tnut"

makedepends=(libgpg-error)

name=libgcrypt
version=1.10.1

source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.bz2 )

build() {
cd $name-$version
./configure --prefix=/usr --disable-static
make
make DESTDIR=$PKG install

install -v -dm755 $PKG/usr/share/doc/libgcrypt-$version
install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
$PKG/usr/share/doc/libgcrypt-$version

# Obsolet lib

rm $PKG/usr/lib/libgcrypt.la
}
