mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
libgpg-error: run target gen-posix-lock-obj /w qemu
This commit is contained in:
parent
aa02d96614
commit
96d599c51b
1 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libgpg-error'
|
# Template file for 'libgpg-error'
|
||||||
pkgname=libgpg-error
|
pkgname=libgpg-error
|
||||||
version=1.36
|
version=1.36
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
short_desc="Library for error values used by GnuPG component"
|
short_desc="Library for error values used by GnuPG component"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
|
@ -10,10 +10,18 @@ homepage="https://www.gnupg.org"
|
||||||
distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
|
distfiles="https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=babd98437208c163175c29453f8681094bcaf92968a15cafb1a276076b33c97c
|
checksum=babd98437208c163175c29453f8681094bcaf92968a15cafb1a276076b33c97c
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends="qemu-user-static"
|
||||||
|
fi
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
|
local lock_obj_pub=src/syscfg/lock-obj-pub.${XBPS_CROSS_TRIPLET#*-}.h
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
cp ${FILESDIR}/lock-obj-pub.arm.h \
|
$CC -DHAVE_CONFIG_H -I. -pthread -o gen-posix-lock-obj src/gen-posix-lock-obj.c
|
||||||
src/syscfg/lock-obj-pub.${XBPS_CROSS_TRIPLET#*-}.h
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue