2012-05-30 16:55:55 +00:00
|
|
|
buildarch=2
|
2012-03-17 18:53:40 +00:00
|
|
|
|
|
|
|
pkgname=raspberrypi-firmware
|
2012-07-14 09:33:32 +00:00
|
|
|
pkgver=20120714
|
2012-03-17 18:53:40 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Firmware files for Raspberry Pi"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/raspberrypi/firmware"
|
2012-03-17 19:27:32 +00:00
|
|
|
makedepends=('git')
|
2012-03-17 18:53:40 +00:00
|
|
|
license=('custom')
|
|
|
|
options=(!strip)
|
|
|
|
|
2012-05-18 22:58:41 +00:00
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
2012-03-17 18:53:40 +00:00
|
|
|
package() {
|
|
|
|
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
|
|
|
|
}
|