void-packages/srcpkgs/libgcrypt/template

39 lines
1.0 KiB
Bash

# Template file for 'libgcrypt'
pkgname=libgcrypt
version=1.8.4
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.org>"
license="LGPL-2.1-or-later"
homepage="https://www.gnupg.org"
distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
checksum=f638143a0672628fde0cad745e9b14deb85dffb175709cacc1f4fe24b93f2227
case "$XBPS_TARGET_MACHINE" in
ppc|ppc-musl) configure_args+=" ac_cv_sys_symbol_underscore=no" ;;
esac
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"
}
}