mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added alarm/rpi-eeprom
This commit is contained in:
parent
5067d1e023
commit
74a97550c2
1 changed files with 36 additions and 0 deletions
36
alarm/rpi-eeprom/PKGBUILD
Normal file
36
alarm/rpi-eeprom/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: graysky <graysky@archlinux.us>
|
||||
|
||||
buildarch=12
|
||||
|
||||
pkgname=rpi-eeprom
|
||||
_commit=34aa94bdd24d3daaa6014ba7288b3c16f8dc3a05
|
||||
pkgver=20210531
|
||||
pkgrel=1
|
||||
pkgdesc="Bootloader and VL805 USB controller EEPROM update tool for RPi4"
|
||||
arch=('any')
|
||||
url='https://github.com/raspberrypi/rpi-eeprom'
|
||||
license=('custom')
|
||||
depends=(python pciutils raspberrypi-firmware coreutils)
|
||||
backup=("etc/default/$pkgname-update-default")
|
||||
source=("https://github.com/raspberrypi/rpi-eeprom/archive/$_commit.tar.gz")
|
||||
md5sums=('d2577609190fc7f592f13adb08e1e545')
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$_commit"
|
||||
install -pd "$pkgdir/usr/bin"
|
||||
install -pm755 rpi-eeprom-config "$pkgdir/usr/bin/rpi-eeprom-config"
|
||||
install -pm755 rpi-eeprom-update "$pkgdir/usr/bin/rpi-eeprom-update"
|
||||
install -pDm644 "$pkgname-update-default" "$pkgdir/etc/default/$pkgname-update"
|
||||
|
||||
# Arch ARM does not ship raspi-config
|
||||
sed -i '/to change the release/d' "$pkgdir/usr/bin/rpi-eeprom-update"
|
||||
|
||||
install -pd "$pkgdir/usr/lib/firmware/raspberrypi/bootloader/backup"
|
||||
for target in beta critical stable; do
|
||||
cp -a "firmware/$target" "$pkgdir/usr/lib/firmware/raspberrypi/bootloader"
|
||||
done
|
||||
ln -sf critical "$pkgdir/usr/lib/firmware/raspberrypi/bootloader/default"
|
||||
ln -sf stable "$pkgdir/usr/lib/firmware/raspberrypi/bootloader/latest"
|
||||
|
||||
install -pDm644 LICENSE "$pkgdir/usr/share/doc/$pkgname"
|
||||
}
|
Loading…
Reference in a new issue