iglunix/pkgs/raspberrypi-firmware/build.sh
2021-06-16 22:44:59 +01:00

27 lines
494 B
Bash

pkgname=raspberrypi-firmware
pkgver=20210527
fetch() {
curl -L "https://github.com/raspberrypi/firmware/archive/refs/tags/1.$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv firmware-1.$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/boot
cp ./boot/*.bin $pkgdir/boot
cp ./boot/*.dat $pkgdir/boot
cp ./boot/*.elf $pkgdir/boot
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}