void-packages/srcpkgs/libgcrypt/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

43 lines
1.1 KiB
Bash

# Template file for 'libgcrypt'
pkgname=libgcrypt
version=1.9.3
revision=1
build_style=gnu-configure
configure_args="--enable-static --without-capabilities"
makedepends="libgpg-error-devel"
short_desc="GNU cryptographic library"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://www.gnupg.org"
distfiles="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2"
checksum=97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd
if [ "$CROSS_BUILD" ]; then
configure_args+=" ac_cv_sys_symbol_underscore=no"
fi
case "$XBPS_TARGET_MACHINE" in
ppcle*) configure_args+=" --disable-ppc-crypto-support";;
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/lib/pkgconfig
vmove usr/share
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}