Skip to content

Commit

Permalink
libgpg-error: update to 1.38; use new gen-lock-obj.sh.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rmccask authored and pullmoll committed Jun 12, 2020
1 parent 351f8c2 commit e79f72d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 37 deletions.
25 changes: 0 additions & 25 deletions srcpkgs/libgpg-error/files/lock-obj-pub.arm.h

This file was deleted.

21 changes: 9 additions & 12 deletions srcpkgs/libgpg-error/template
@@ -1,28 +1,25 @@
# Template file for 'libgpg-error'
pkgname=libgpg-error
version=1.37
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"
checksum=b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763
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

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
pre_configure() {
cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/gen-lock-obj.sh ${wrksrc}/src
chmod +x ${wrksrc}/src/gen-lock-obj.sh
}

post_install() {
Expand Down

0 comments on commit e79f72d

Please sign in to comment.