2012-08-01 19:46:05 +00:00
|
|
|
buildarch=18
|
2012-03-17 18:53:40 +00:00
|
|
|
|
|
|
|
pkgname=raspberrypi-firmware
|
2013-02-18 10:41:12 +00:00
|
|
|
pkgver=20130218
|
2012-07-26 19:51:02 +00:00
|
|
|
pkgrel=1
|
2012-03-17 18:53:40 +00:00
|
|
|
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
|
2012-11-26 00:17:26 +00:00
|
|
|
provides=('raspberrypi-firmware')
|
2012-11-26 10:19:42 +00:00
|
|
|
conflicts=('raspberrypi-firmware')
|
2012-05-18 22:58:41 +00:00
|
|
|
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() {
|
2012-07-28 22:39:26 +00:00
|
|
|
cp -R "${srcdir}"/firmware/boot "${pkgdir}"/boot
|
|
|
|
mkdir -p "${pkgdir}"/opt/vc
|
2012-08-07 16:03:08 +00:00
|
|
|
|
2012-08-09 21:17:48 +00:00
|
|
|
if [[ $CARCH == "arm" ]]; then
|
2013-01-08 00:01:52 +00:00
|
|
|
cp -R "${srcdir}"/firmware/opt/vc/{bin,include,lib,sbin,src,LICENCE} "${pkgdir}"/opt/vc
|
2012-08-09 21:17:48 +00:00
|
|
|
elif [[ $CARCH == "armv6h" ]]; then
|
2013-01-08 00:01:52 +00:00
|
|
|
cp -R "${srcdir}"/firmware/hardfp/opt/vc/{bin,include,lib,sbin,src,LICENCE} "${pkgdir}"/opt/vc
|
2012-08-09 21:17:48 +00:00
|
|
|
fi
|
2013-01-08 00:01:52 +00:00
|
|
|
|
|
|
|
# Create lib links
|
|
|
|
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
|
|
|
|
|
|
|
|
# ensure we can load libs
|
2013-01-09 21:58:46 +00:00
|
|
|
echo "/opt/vc/lib/" > "${pkgdir}"/etc/ld.so.conf.d/raspberrypi-firmware.conf
|
2012-03-17 18:53:40 +00:00
|
|
|
}
|