mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
buildarch=16
|
|
|
|
pkgname=raspberrypi-firmware-next
|
|
pkgver=20121127
|
|
pkgrel=1
|
|
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
|
|
source=('https://github.com/raspberrypi/firmware/archive/next.zip')
|
|
md5sums=('6e39d086accc4ceddeb687800e9f42dd')
|
|
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-next/boot/kernel.img
|
|
}
|
|
|
|
package() {
|
|
cp -R "${srcdir}"/firmware-next/boot "${pkgdir}"/boot
|
|
mkdir -p "${pkgdir}"/opt/vc
|
|
|
|
if [[ $CARCH == "arm" ]]; then
|
|
cp -R "${srcdir}"/firmware-next/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
|
elif [[ $CARCH == "armv6h" ]]; then
|
|
cp -R "${srcdir}"/firmware-next/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
|
fi
|
|
}
|