From a9fb47b2f3819e1f4858618ea3bd39b793b190c3 Mon Sep 17 00:00:00 2001 From: "Philipp B." Date: Sat, 19 May 2012 01:57:11 +0300 Subject: [PATCH 1/2] New version available --- alarm/raspberrypi-firmware/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alarm/raspberrypi-firmware/PKGBUILD b/alarm/raspberrypi-firmware/PKGBUILD index c2b2f5ecc..813d788c8 100644 --- a/alarm/raspberrypi-firmware/PKGBUILD +++ b/alarm/raspberrypi-firmware/PKGBUILD @@ -2,7 +2,7 @@ plugrel=1 noautobuild=1 pkgname=raspberrypi-firmware -pkgver=20120509 +pkgver=20120518 pkgrel=1 pkgdesc="Firmware files for Raspberry Pi" arch=('any') From 20dd2dc832544bf075312d467c3c8a3b703d531c Mon Sep 17 00:00:00 2001 From: "Philipp B." Date: Sat, 19 May 2012 01:58:41 +0300 Subject: [PATCH 2/2] Made it compatible with the ArchLinux VCS PKGBUILD Guidelines --- alarm/raspberrypi-firmware/PKGBUILD | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/alarm/raspberrypi-firmware/PKGBUILD b/alarm/raspberrypi-firmware/PKGBUILD index 813d788c8..6833dc077 100644 --- a/alarm/raspberrypi-firmware/PKGBUILD +++ b/alarm/raspberrypi-firmware/PKGBUILD @@ -11,8 +11,24 @@ makedepends=('git') license=('custom') options=(!strip) +_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() { - git clone --depth 1 git://github.com/raspberrypi/firmware.git - rm "${srcdir}"/firmware/boot/kernel.img cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}" }