| 1 | # Description: A general purpose cryptographic library based on GnuPG |
| 2 | # URL: http://www.gnupg.org |
| 3 | # Packager: Matt Housh, jaeger at morpheus dot net |
| 4 | # Maintainer: Thomas Penteker, tek at serverop dot de |
| 5 | # Arch Maintainer System Team devel at crux-arm dot nu |
| 6 | # Depends on: libgpg-error |
| 7 | |
| 8 | name=libgcrypt |
| 9 | version=1.4.6 |
| 10 | release=1 |
| 11 | source=(ftp://ftp.gnupg.org/gcrypt/libgcrypt/$name-$version.tar.bz2) |
| 12 | |
| 13 | build() { |
| 14 | export GPG_ERROR_CFLAGS="-I$CLFS/usr/include" |
| 15 | export GPG_ERROR_LIBS="-L$CLFS/usr/lib" |
| 16 | cd $name-$version |
| 17 | ./configure --build=$CHOST \ |
| 18 | --host=$CTARGET \ |
| 19 | --prefix=/usr \ |
| 20 | --with-gpg-error-prefix=$CLFS/usr \ |
| 21 | --disable-padlock-support |
| 22 | make |
| 23 | make DESTDIR=$PKG install |
| 24 | |
| 25 | rm -rf $PKG/usr/sbin |
| 26 | rm -rf $PKG/usr/share/info |
| 27 | } |