mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
34 lines
915 B
Bash
34 lines
915 B
Bash
buildarch=16
|
|
|
|
pkgname=raspberrypi-firmware-next
|
|
pkgver=20121128
|
|
pkgrel=3
|
|
pkgdesc="Firmware files for Raspberry Pi"
|
|
arch=('any')
|
|
url="https://github.com/raspberrypi/firmware"
|
|
makedepends=('git')
|
|
license=('custom')
|
|
options=(!strip)
|
|
install=${pkgname}.install
|
|
_gitroot=git://github.com/raspberrypi/firmware.git
|
|
_gitname=firmware
|
|
provides=('raspberrypi-firmware')
|
|
conflicts=('raspberrypi-firmware')
|
|
install=${pkgname}.install
|
|
build() {
|
|
msg "Connecting to GIT server...."
|
|
git clone --depth 1 -b next "$_gitroot"
|
|
|
|
rm -f "${srcdir}"/firmware/boot/kernel.img
|
|
}
|
|
|
|
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,LICENCE} "${pkgdir}"/opt/vc
|
|
elif [[ $CARCH == "armv6h" ]]; then
|
|
cp -R "${srcdir}"/firmware/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
|
fi
|
|
}
|