alarm/raspberrypi-firmware to 20150203-2

This commit is contained in:
Kevin Mihelich 2015-02-04 00:54:33 +00:00
parent 08313d5d88
commit 18d97ed180

View file

@ -1,3 +1,5 @@
buildarch=20
pkgbase=raspberrypi-firmware
pkgname=('raspberrypi-firmware'
'raspberrypi-firmware-bootloader'
@ -5,30 +7,16 @@ pkgname=('raspberrypi-firmware'
'raspberrypi-firmware-tools'
'raspberrypi-firmware-examples')
pkgver=20150203
pkgrel=1
pkgrel=2
_commit=28f1f25e26b33c243c833ff89b70eae5a3b2467c
pkgdesc="Firmware files for Raspberry Pi"
arch=('any')
url="https://github.com/raspberrypi/firmware"
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
}
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
md5sums=('0f526984d3aab5c3d9c0d131d03d7acd')
package_raspberrypi-firmware() {
depends=('raspberrypi-firmware-bootloader'
@ -40,8 +28,9 @@ package_raspberrypi-firmware() {
package_raspberrypi-firmware-bootloader() {
pkgdesc="Bootloader files for Raspberry Pi"
cp -R "${srcdir}"/firmware/boot "${pkgdir}"/boot
rm "${pkgdir}"/boot/{COPYING.linux,start_x.elf,fixup_x.dat}
mkdir -p "${pkgdir}"/boot
cp "${srcdir}"/firmware-${_commit}/boot/{*.dat,*.bin,*.elf} "${pkgdir}"/boot
rm "${pkgdir}"/boot/{start_x.elf,fixup_x.dat}
}
package_raspberrypi-firmware-bootloader-x() {
@ -49,7 +38,7 @@ package_raspberrypi-firmware-bootloader-x() {
depends=('raspberrypi-firmware-bootloader')
mkdir -p "${pkgdir}"/boot
cp "${srcdir}"/firmware/boot/{start_x.elf,fixup_x.dat} "${pkgdir}"/boot
cp "${srcdir}"/firmware-${_commit}/boot/{start_x.elf,fixup_x.dat} "${pkgdir}"/boot
}
package_raspberrypi-firmware-tools() {
@ -57,11 +46,7 @@ package_raspberrypi-firmware-tools() {
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
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
@ -75,9 +60,5 @@ package_raspberrypi-firmware-examples() {
mkdir -p "${pkgdir}"/opt/vc
if [[ $CARCH == "arm" ]]; then
cp -R "${srcdir}"/firmware/opt/vc/src "${pkgdir}"/opt/vc
elif [[ $CARCH == "armv6h" ]]; then
cp -R "${srcdir}"/firmware/hardfp/opt/vc/src "${pkgdir}"/opt/vc
fi
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/src "${pkgdir}"/opt/vc
}