mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
cjs: fix cross build
The cross-built gobject-introspection does not contain the /usr/share/gobject-introspection-1.0/tests directory. If it's missing, copy from the host and always remove it after install to be safe.
This commit is contained in:
parent
208683cd3d
commit
570928df0e
1 changed files with 10 additions and 1 deletions
|
@ -19,10 +19,19 @@ checksum=7dab9615c41d9cb3b2409b2aa6cb9813ef5762f8c62526f54b4b3734079961f6
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
cp ${FILESDIR}/ax_code_coverage.m4 m4/
|
cp ${FILESDIR}/ax_code_coverage.m4 m4/
|
||||||
|
if [ ! -d "${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests" ]; then
|
||||||
|
# /usr/share/gobject-introspection-1.0/tests missing in cross builds
|
||||||
|
cp -aR /usr/share/gobject-introspection-1.0/tests \
|
||||||
|
${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0
|
||||||
|
fi
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# In case it was copied make sure it's removed
|
||||||
|
rm -rf ${XBPS_CROSS_BASE}/usr/share/gobject-introspection-1.0/tests
|
||||||
|
}
|
||||||
|
|
||||||
cjs-devel_package() {
|
cjs-devel_package() {
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue