PKGBUILDs/alarm/raspberrypi-firmware/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

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"
makedepends=('git')
2012-03-17 18:53:40 +00:00
license=('custom')
options=(!strip)
_gitroot=git://github.com/raspberrypi/firmware.git
_gitname=firmware
provides=('raspberrypi-firmware')
conflicts=('raspberrypi-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 "${pkgdir}"/boot
mkdir -p "${pkgdir}"/opt/vc
if [[ $CARCH == "arm" ]]; then
cp -R "${srcdir}"/firmware/opt/vc/{bin,include,lib,sbin,src,LICENCE} "${pkgdir}"/opt/vc
elif [[ $CARCH == "armv6h" ]]; then
cp -R "${srcdir}"/firmware/hardfp/opt/vc/{bin,include,lib,sbin,src,LICENCE} "${pkgdir}"/opt/vc
fi
# Create lib links
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
# ensure we can load libs
echo "/opt/vc/lib/" > "${pkgdir}"/etc/ld.so.conf.d/raspberrypi-firmware.conf
2012-03-17 18:53:40 +00:00
}