mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
parent
2d375eeea9
commit
83b46b55cc
1 changed files with 8 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
buildarch=12
|
||||
|
||||
pkgname=rpi-eeprom
|
||||
_commit=3e56160f8b6d24b7fe6b3ae8eb9635f7904ef1c3
|
||||
pkgver=20211122
|
||||
_commit=12907d02ffe70c017de6e21e7adcce2303f9159f
|
||||
pkgver=20211124
|
||||
pkgrel=1
|
||||
pkgdesc="Bootloader and VL805 USB controller EEPROM update tool for RPi4"
|
||||
arch=('any')
|
||||
|
@ -12,14 +12,15 @@ url='https://github.com/raspberrypi/rpi-eeprom'
|
|||
license=('custom')
|
||||
depends=(python pciutils raspberrypi-firmware coreutils binutils)
|
||||
backup=("etc/default/$pkgname-update")
|
||||
source=("https://github.com/raspberrypi/rpi-eeprom/archive/$_commit.tar.gz")
|
||||
md5sums=('48bad6bc119efd34dfd7896afa82de43')
|
||||
source=("$pkgname-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/rpi-eeprom/archive/$_commit.tar.gz")
|
||||
md5sums=('875b3ccae0cb06eea07c0825fd3f3a55')
|
||||
install="$pkgname.install"
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$_commit"
|
||||
install -pd "$pkgdir/usr/bin"
|
||||
install -pm755 rpi-eeprom-config "$pkgdir/usr/bin/rpi-eeprom-config"
|
||||
install -pm755 rpi-eeprom-digest "$pkgdir/usr/bin/rpi-eeprom-digest"
|
||||
install -pm755 rpi-eeprom-update "$pkgdir/usr/bin/rpi-eeprom-update"
|
||||
install -pDm644 "$pkgname-update-default" "$pkgdir/etc/default/$pkgname-update"
|
||||
|
||||
|
@ -34,4 +35,7 @@ package() {
|
|||
ln -sf stable "$pkgdir/usr/lib/firmware/raspberrypi/bootloader/latest"
|
||||
|
||||
install -pDm644 LICENSE "$pkgdir/usr/share/doc/$pkgname"
|
||||
|
||||
# firmware files should not be executable
|
||||
find "$pkgdir/usr/lib/firmware/raspberrypi/bootloader" -name '*.bin' -exec chmod 644 '{}' +
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue