linux: make this also work for arm/rpi.

This commit is contained in:
Juan RP 2013-11-11 09:07:14 +01:00
parent 8b26667d84
commit ecf333b51a
1 changed files with 16 additions and 6 deletions

View File

@ -3,20 +3,30 @@ pkgname=linux
version=3.10
revision=1
build_style=meta
homepage="https://www.voidlinux.eu/"
homepage="http://www.voidlinux.eu/"
short_desc="Linux kernel meta package"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Public domain"
# XXX make it available to all architectures/platforms (rpi).
only_for_archs="i686 x86_64"
makedepends="linux3.10 linux-firmware dracut"
if [ "$XBPS_TARGET_ARCH" = "i686" -o "$XBPS_TARGET_ARCH" = "x86_64" ]; then
makedepends="linux3.10 linux-firmware dracut"
elif [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
makedepends="kernel-rpi"
fi
linux_package() {
depends="linux3.10"
if [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
depends="kernel-rpi"
else
depends="linux3.10"
fi
}
linux-headers_package() {
short_desc="Linux kernel headers meta package"
depends="linux3.10-headers"
if [ "$XBPS_TARGET_ARCH" = "armv6l" ]; then
depends="kernel-rpi-headers"
else
depends="linux3.10-headers"
fi
}