void-packages/srcpkgs/libgpg-error/template
Randy McCaskill e79f72db82 libgpg-error: update to 1.38; use new gen-lock-obj.sh.
gen-lock-obj.sh was supposed to be in 1.38 but was left of the of the tar file
so I added it back.
2020-06-12 21:39:35 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'libgpg-error'
pkgname=libgpg-error
version=1.38
revision=1
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
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob_plain;f=src/gen-lock-obj.sh;h=13858cfbf6c5f69f5f5fd64cd6fcc6a6c80eca3b>gen-lock-obj.sh"
checksum="d8988275aa69d7149f931c10442e9e34c0242674249e171592b430ff7b3afd02
83892a9ebe3e19e8fd754a7ad02b6c81240e64554aab6490a4ea5aa36ea49a81"
skip_extraction="gen-lock-obj.sh"
if [ "$CROSS_BUILD" ]; then
hostmakedepends="qemu-user-static"
fi
pre_configure() {
cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/gen-lock-obj.sh ${wrksrc}/src
chmod +x ${wrksrc}/src/gen-lock-obj.sh
}
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"
}
}