2012-11-26 00:37:26 +00:00
|
|
|
buildarch=16
|
2012-11-26 00:17:26 +00:00
|
|
|
|
|
|
|
pkgname=raspberrypi-firmware-next
|
2012-11-28 10:12:59 +00:00
|
|
|
pkgver=20121128
|
|
|
|
pkgrel=3
|
2012-11-26 00:17:26 +00:00
|
|
|
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
|
2012-11-26 10:19:42 +00:00
|
|
|
provides=('raspberrypi-firmware')
|
2012-11-26 00:17:26 +00:00
|
|
|
conflicts=('raspberrypi-firmware')
|
2012-11-28 10:12:59 +00:00
|
|
|
install=${pkgname}.install
|
2012-11-26 00:17:26 +00:00
|
|
|
build() {
|
2012-11-28 10:12:59 +00:00
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
git clone --depth 1 -b next "$_gitroot"
|
2012-11-26 00:17:26 +00:00
|
|
|
|
2012-11-28 10:12:59 +00:00
|
|
|
rm -f "${srcdir}"/firmware/boot/kernel.img
|
2012-11-26 00:17:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-11-28 10:12:59 +00:00
|
|
|
cp -R "${srcdir}"/firmware/boot "${pkgdir}"/boot
|
2012-11-26 00:17:26 +00:00
|
|
|
mkdir -p "${pkgdir}"/opt/vc
|
|
|
|
|
|
|
|
if [[ $CARCH == "arm" ]]; then
|
2012-11-28 10:12:59 +00:00
|
|
|
cp -R "${srcdir}"/firmware/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
2012-11-26 00:17:26 +00:00
|
|
|
elif [[ $CARCH == "armv6h" ]]; then
|
2012-11-28 10:12:59 +00:00
|
|
|
cp -R "${srcdir}"/firmware/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
2012-11-26 00:17:26 +00:00
|
|
|
fi
|
|
|
|
}
|