mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libgcrypt
|
|
pkgver=1.8.4
|
|
pkgrel=1
|
|
pkgdesc="general purpose crypto library based on the code used in GnuPG"
|
|
url="http://www.gnupg.org"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends_dev="libgpg-error-dev"
|
|
makedepends="$depends_dev texinfo"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
|
|
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
options="!checkroot"
|
|
|
|
# secfixes:
|
|
# 1.8.3-r0:
|
|
# - CVE-2018-0495
|
|
|
|
build () {
|
|
cd "$builddir"
|
|
|
|
local _arch_configure=
|
|
case "$CARCH" in
|
|
arm*)
|
|
# disable arm assembly for now as it produces TEXTRELs
|
|
export gcry_cv_gcc_arm_platform_as_ok=no
|
|
;;
|
|
x86 | x86_64)
|
|
_arch_configure="--enable-padlock-support"
|
|
;;
|
|
esac
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--enable-static \
|
|
$_arch_configure
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# t-secmem fails on ppc64le, see https://dev.gnupg.org/T3375
|
|
[ "$CARCH" != ppc64le ] || return 0
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
rm -f ${pkgdir}/usr/share/info/dir
|
|
}
|
|
|
|
static() {
|
|
pkgdesc="$pkgnanme static libraries"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="b831fc337eb14806897e224b0d1e78d1f8e9db91dffa818a015a4aa104144e2d971e5a855904907ee2bb9990a9d526de32d6787e1cae98e28a65c3258b2b1ea1 libgcrypt-1.8.4.tar.bz2"
|