base-system: use XBPS_TARGET_MACHINE instead.

This commit is contained in:
Juan RP 2013-11-14 12:18:34 +01:00
parent e6233b92b5
commit 542acccc2a

View file

@ -1,6 +1,6 @@
# Template file for 'base-system'
pkgname=base-system
version=0.78
version=0.79
revision=1
build_style=meta
homepage="http://www.voidlinux.eu/"
@ -16,11 +16,11 @@ makedepends="
iproute2 iputils bridge-utils ifenslave iw wpa_supplicant xbps netbsd-wtf
nvi sudo wifi-firmware linux void-artwork nss-mdns traceroute ethtool parted"
if [ "$XBPS_MACHINE" = "i686" ]; then
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
makedepends+=" grub"
elif [ "$XBPS_MACHINE" = "x86_64" ]; then
elif [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
makedepends+=" grub-x86_64-efi"
elif [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
# XXX only for Raspberry Pi
makedepends+=" rpi-base-files rpi-firmware"
fi