mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# contributions from Arch: https://www.archlinux.org/packages/multilib/x86_64/lib32-nettle/
|
|
|
|
_pkgbasename=nettle
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=3.2
|
|
pkgrel=1
|
|
pkgdesc="A low-level cryptographic library (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.lysator.liu.se/~nisse/nettle/"
|
|
license=('GPL2')
|
|
depends=('lib32-gmp' $_pkgbasename=$pkgver)
|
|
makedepends=('lib32-gcc-libs')
|
|
source=(ftp://ftp.gnu.org/gnu/nettle/$_pkgbasename-$pkgver.tar.gz)
|
|
md5sums=('afb15b4764ebf1b4e6d06c62bd4d29e4')
|
|
validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller <nisse@lysator.liu.se>
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 \
|
|
--enable-shared --with-include-path=/usr/lib32/gmp
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
make -k check
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
make DESTDIR="$pkgdir/" install
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
}
|