mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Contributor: David Demelier <markand@malikania.fr>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
_pkgname=usbboot
|
|
pkgname=raspberrypi-usbboot
|
|
pkgver=20250227
|
|
_gittag="$pkgver-132106"
|
|
pkgrel=0
|
|
pkgdesc="rpiboot and bin2c from Raspberry Pi"
|
|
url="https://github.com/raspberrypi/usbboot"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="libusb-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/raspberrypi/usbboot/archive/refs/tags/$_gittag.tar.gz"
|
|
options="!check !strip" # No tests and don't strip .elf files.
|
|
builddir="$srcdir/$_pkgname-$_gittag"
|
|
|
|
build() {
|
|
make CFLAGS="$CFLAGS" bin2c rpiboot
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 rpiboot -t "$pkgdir"/usr/bin
|
|
install -Dm755 bin2c -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm644 -t "$pkgdir"/usr/lib/udev/rules.d debian/70-rpiboot.rules
|
|
|
|
mkdir -p "$pkgdir"/usr/share/rpiboot/msd
|
|
cp msd/bootcode.bin "$pkgdir"/usr/share/rpiboot/msd
|
|
cp msd/bootcode4.bin "$pkgdir"/usr/share/rpiboot/msd
|
|
cp msd/start.elf "$pkgdir"/usr/share/rpiboot/msd
|
|
cp msd/start4.elf "$pkgdir"/usr/share/rpiboot/msd
|
|
cp -R recovery "$pkgdir"/usr/share/rpiboot
|
|
}
|
|
|
|
sha512sums="
|
|
54b8bf4bf7dcc10ce3497197d7dfc8bb25954051dff683f1a4c35ace2f64716d50af9e9645b46a76f2a0c0d7a80f66cc14a18d5f34841ca954552a2c6ddf3249 raspberrypi-usbboot-20250227.tar.gz
|
|
"
|