mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
Merge pull request #155 from TamCore/master
raspberrypi-firmware: New version available and made it compatible with the ArchLinux VCS PKGBUILD Guidelines
This commit is contained in:
commit
701967ec23
1 changed files with 19 additions and 3 deletions
|
@ -2,7 +2,7 @@ plugrel=1
|
||||||
noautobuild=1
|
noautobuild=1
|
||||||
|
|
||||||
pkgname=raspberrypi-firmware
|
pkgname=raspberrypi-firmware
|
||||||
pkgver=20120509
|
pkgver=20120518
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Firmware files for Raspberry Pi"
|
pkgdesc="Firmware files for Raspberry Pi"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -11,8 +11,24 @@ makedepends=('git')
|
||||||
license=('custom')
|
license=('custom')
|
||||||
options=(!strip)
|
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() {
|
package() {
|
||||||
git clone --depth 1 git://github.com/raspberrypi/firmware.git
|
|
||||||
rm "${srcdir}"/firmware/boot/kernel.img
|
|
||||||
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
|
cp -R "${srcdir}"/firmware/{boot,opt} "${pkgdir}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue