void-packages/srcpkgs/libgpg-error/template

44 lines
1.2 KiB
Bash

# Template file for 'libgpg-error'
pkgname=libgpg-error
version=1.36
revision=3
build_style=gnu-configure
short_desc="Library for error values used by GnuPG component"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, GPL-2.0-or-later"
homepage="https://www.gnupg.org"
distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=babd98437208c163175c29453f8681094bcaf92968a15cafb1a276076b33c97c
if [ "$CROSS_BUILD" ]; then
hostmakedepends="qemu-user-static"
fi
post_configure() {
local lock_obj_pub=src/syscfg/lock-obj-pub.${XBPS_CROSS_TRIPLET#*-}.h
if [ "$CROSS_BUILD" ]; then
$CC -DHAVE_CONFIG_H -I. -pthread -o gen-posix-lock-obj src/gen-posix-lock-obj.c
qemu-${XBPS_TARGET_QEMU_MACHINE}-static -L ${XBPS_CROSS_BASE} \
gen-posix-lock-obj > $lock_obj_pub
msg_normal "Generated $lock_obj_pub ...\n"
cat $lock_obj_pub
fi
}
post_install() {
rm -rf ${DESTDIR}/usr/share/common-lisp
}
libgpg-error-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/gpgrt-config
vmove usr/bin/gpg-error-config
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
vmove "usr/lib/*.so"
}
}