PKGBUILDs/alarm/raspberrypi-firmware/PKGBUILD
pepedog c820d2ce88 alarm/raspberrypi-firmware
Revert "Move to version 5 of VCHIQ. Note: this requires a corresponding start.elf and /opt/vc/lib update"
2012-10-17 14:25:49 +02:00

40 lines
988 B
Bash

buildarch=18
pkgname=raspberrypi-firmware
pkgver=20121017
pkgrel=1
pkgdesc="Firmware files for Raspberry Pi"
arch=('any')
url="https://github.com/raspberrypi/firmware"
makedepends=('git')
license=('custom')
options=(!strip)
install=${pkgname}.install
_gitroot=git://github.com/raspberrypi/firmware.git
_gitname=firmware
build() {
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone --depth 1 "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
rm -f "${srcdir}"/firmware/boot/kernel.img
}
package() {
cp -R "${srcdir}"/firmware/boot "${pkgdir}"/boot
mkdir -p "${pkgdir}"/opt/vc
if [[ $CARCH == "arm" ]]; then
cp -R "${srcdir}"/firmware/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
elif [[ $CARCH == "armv6h" ]]; then
cp -R "${srcdir}"/firmware/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
fi
}