PKGBUILDs/alarm/raspberrypi-firmware/PKGBUILD
2012-04-28 00:37:35 -04:00

24 lines
722 B
Bash

plugrel=1
noautobuild=1
pkgname=raspberrypi-firmware
pkgver=20120427
pkgrel=1
pkgdesc="Firmware files for Raspberry Pi"
arch=('any')
url="https://github.com/raspberrypi/firmware"
makedepends=('git')
license=('custom')
options=(!strip)
source=("config.txt" "cmdline.txt")
md5sums=('4ac23968f7a23c435f468c88d6f34d05'
'e226755a6bb1b4beb229ce5d30780d0c')
package() {
git clone --depth 1 git://github.com/raspberrypi/firmware.git
rm "${srcdir}"/firmware/boot/kernel.img
cat "${srcdir}"/config.txt > "${srcdir}"/firmware/boot/config.txt
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
cat "${srcdir}/config.txt" > "${pkgdir}/boot/config.txt"
cat "${srcdir}/cmdline.txt" > "${pkgdir}/boot/cmdline.txt"
}