xbps-triggers: use host utils if XBPS_TARGET_ARCH != host arch.
This commit is contained in:
parent
786d014ba9
commit
41ec5ed392
@ -31,6 +31,8 @@ run)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HOSTARCH=$(uname -m)
|
||||
|
||||
for f in ${info_files}; do
|
||||
[ "$f" = "/usr/share/info/dir" ] && continue
|
||||
|
||||
@ -44,6 +46,10 @@ run)
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$XBPS_TARGET_ARCH" != "$HOST_ARCH" ]; then
|
||||
# Use host utility
|
||||
installinfo=install-info
|
||||
fi
|
||||
$installinfo $infoargs ./$f $infodir/dir 2>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "done."
|
||||
|
@ -51,6 +51,17 @@ run)
|
||||
exit 0
|
||||
fi
|
||||
|
||||
HOST_ARCH=$(uname -m)
|
||||
|
||||
if [ "$XBPS_TARGET_ARCH" != "$HOST_ARCH" ]; then
|
||||
USERADD=useradd
|
||||
USERDEL=userdel
|
||||
GROUPADD=groupadd
|
||||
GROUPDEL=groupdel
|
||||
PASSWD=passwd
|
||||
GETENT=getent
|
||||
fi
|
||||
|
||||
case "$TARGET" in
|
||||
post-install)
|
||||
# System groups required by a package.
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.58
|
||||
version=0.59
|
||||
revision=1
|
||||
short_desc="XBPS triggers"
|
||||
short_desc="The XBPS triggers for Void Linux"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://code.google.com/p/xbps"
|
||||
license="Simplified BSD"
|
||||
|
Loading…
Reference in New Issue
Block a user