# Description: A general purpose cryptographic library based on GnuPG
# URL:         http://www.gnupg.org
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Depends on:  libgpg-error

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

build() {
  cd $name-$version

  ./configure \
      --prefix=/usr \
      --disable-padlock-support \
      --enable-static=yes
  make
  make DESTDIR=$PKG install

  rm -rf $PKG/usr/sbin
  rm -rf $PKG/usr/share/info
}