PKGBUILDs/alarm/ti-connectivity/PKGBUILD
2012-10-31 20:12:17 -06:00

43 lines
1 KiB
Bash

# TI Connectivity OMAP4 Firmware package
# This provides the proper firmware for the wl12xx TI WiFi driver used on the PandaBoard
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=ti-connectivity
pkgver=20121031
pkgrel=1
pkgdesc="TI Connectivity OMAP4 Firmware for wl12xx"
arch=('arm')
url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
license=('GPL')
makedepends=('git')
_gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
_gitname="linux-firmware"
build() {
cd $srcdir
## Git checkout
if [ -d $srcdir/${_gitname} ] ; then
msg "Git checkout: Updating existing tree"
cd ${_gitname} && git pull
msg "Git checkout: Tree has been updated"
else
msg "Git checkout: Retrieving sources"
git clone --depth 1 ${_gitroot}
fi
msg "Checkout completed"
}
package() {
cd $srcdir/${_gitname}
# create directory structure
install -d $pkgdir/lib/firmware/ti-connectivity
# copy everything
cp ti-connectivity/* $pkgdir/lib/firmware/ti-connectivity
}