void-packages/srcpkgs/libgcrypt/template
Duncaen e06e53b9ac libgcrypt: update to 1.8.1.
fixes CVE-2017-0379
2017-08-27 21:25:38 +02:00

34 lines
935 B
Bash

# Template build file for 'libgcrypt'.
pkgname=libgcrypt
version=1.8.1
revision=1
build_style=gnu-configure
configure_args="--enable-static --without-capabilities"
makedepends="libgpg-error-devel"
short_desc="GNU cryptographic library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://www.gnupg.org"
license="LGPL-2.1"
distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
checksum=7a2875f8b1ae0301732e878c0cca2c9664ff09ef71408f085c50e332656a78b3
post_configure() {
case "$XBPS_TARGET_MACHINE" in
armv[5-6]*)
sed -i '/HAVE_GCC_INLINE_ASM_NEON 1/d' config.h
sed -i '/HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1/d' config.h
;;
esac
}
libgcrypt-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/libgcrypt-config
vmove usr/include
vmove usr/share
vmove usr/lib/*.so
vmove usr/lib/*.a
}
}