compat-32/libgcrypt-32/Pkgfile

31 lines
715 B
Plaintext
Raw Normal View History

2016-03-28 05:30:41 +02:00
# Description: A general purpose cryptographic library based on GnuPG
2017-02-05 02:50:33 +01:00
# URL: https://www.gnupg.org/
2016-03-28 05:30:41 +02:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: libgcrypt libgpg-error-32
name=libgcrypt-32
2021-01-30 10:53:28 +01:00
version=1.9.1
2016-03-28 05:30:41 +02:00
release=1
2017-02-05 02:50:33 +01:00
source=(https://www.gnupg.org/ftp/gcrypt/${name%-*}/${name%-*}-$version.tar.bz2)
2016-03-28 05:30:41 +02:00
build() {
2017-02-05 02:50:33 +01:00
cd ${name%-*}-$version
2016-03-28 05:30:41 +02:00
2021-01-30 10:53:28 +01:00
# Use 32-bit assembler
sed 's:i586\*-\*-\*:x86_64-*-*:' -i mpi/config.links
sed 's:x86_64-\*-\*:ignore:;s:i?86-\*-\*:x86_64-*-*:' -i configure.ac
autoreconf -fi
2016-03-28 05:30:41 +02:00
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--disable-padlock-support \
2021-01-30 10:53:28 +01:00
--enable-static=yes
2016-03-28 05:30:41 +02:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/{share,include,bin}
}