rpi-base: re-merge rpi*-base and -kernel packages

This commit is contained in:
classabbyamp 2022-09-24 05:35:07 -04:00 committed by classabbyamp
parent edd87e0f34
commit c1b96746a3

View file

@ -1,10 +1,9 @@
# Template file for 'rpi-base' # Template file for 'rpi-base'
pkgname=rpi-base pkgname=rpi-base
version=3.0 version=3.0
revision=2 revision=3
archs="armv6l* armv7l* aarch64*" archs="armv6l* armv7l* aarch64*"
_base_depends="virtual?ntp-daemon rpi-firmware" depends="virtual?ntp-daemon rpi-firmware rpi-kernel"
depends="${_base_depends} rpi-kernel"
short_desc="Void Linux Raspberry Pi base files" short_desc="Void Linux Raspberry Pi base files"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain" license="Public Domain"
@ -26,45 +25,20 @@ case "$XBPS_TARGET_MACHINE" in
;; ;;
esac esac
# support legacy systems (before rpi-kernel was split to rpi{,2,3})
# archs != armv6* are emtpy meta packages to pull the new rpi${n}-base package
case "$XBPS_TARGET_MACHINE" in
armv6*) : ;;
*)
build_style=meta
short_desc+=" (transitional dummy package)"
do_install() { : ; }
case "$XBPS_TARGET_MACHINE" in
armv7*) depends="rpi2-base" ;;
aarch64*) depends="rpi3-base" ;;
esac
;;
esac
rpi2-base_package() { rpi2-base_package() {
depends="${_base_depends} rpi2-kernel" build_style=meta
short_desc="Void Linux Raspberry Pi 2 base files" short_desc+=" (transitional dummy package)"
pkg_install() { depends="rpi-base"
vinstall "${FILESDIR}/71-raspberrypi.rules" 644 usr/lib/udev/rules.d
}
} }
rpi3-base_package() { rpi3-base_package() {
depends="${_base_depends} rpi3-kernel" build_style=meta
short_desc="Void Linux Raspberry Pi 3 base files" short_desc+=" (transitional dummy package)"
pkg_install() { depends="rpi-base"
vinstall "${FILESDIR}/71-raspberrypi.rules" 644 usr/lib/udev/rules.d
}
} }
rpi4-base_package() { rpi4-base_package() {
depends="${_base_depends} rpi4-kernel" build_style=meta
short_desc="Void Linux Raspberry Pi 4 base files" short_desc+=" (transitional dummy package)"
conflicts="rpi3-base" depends="rpi-base"
pkg_install() {
vinstall "${FILESDIR}/71-raspberrypi.rules" 644 usr/lib/udev/rules.d
}
} }