diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 21:07:21 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 21:07:21 -0300 |
commit | da9e93ec10f596fdce1d1373a946a65fdd3086b9 (patch) | |
tree | 67a0451aa334b6324768fc322188bc5e8d9a1c49 /libre-testing/b43-tools-git/PKGBUILD | |
parent | fba570119cfc84fb12158ad03ceb408f43555d26 (diff) |
b43-tools-git-20110214-1
Diffstat (limited to 'libre-testing/b43-tools-git/PKGBUILD')
-rw-r--r-- | libre-testing/b43-tools-git/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/libre-testing/b43-tools-git/PKGBUILD b/libre-testing/b43-tools-git/PKGBUILD new file mode 100644 index 000000000..42e331f7b --- /dev/null +++ b/libre-testing/b43-tools-git/PKGBUILD @@ -0,0 +1,53 @@ +#Contributor: Konstantinos Karantias <kostis[at]gtklocker[dot]com> +#Contributor: Jussi Timperi <jussi.timperi[at]gmail[dot]com> + +pkgname=b43-tools-git +pkgver=20110214 +pkgrel=1 +pkgdesc="Tools for the Broadcom 43xx series WLAN chip." +arch=('i686' 'x86_64' 'ppc') +url="http://bu3sch.de/gitweb?p=b43-tools.git;a=summary" +license=('GPL2' 'GPL3') +depends=('python2') +makedepends=('git' 'bison' 'flex' 'python2') +provides=('b43-tools') +source=() +md5sums=() + +_gitroot="git://git.bu3sch.de/b43-tools.git" +_gitname="b43-tools" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + sed -i -e 's/\/man\//\/share\/man\//g' fwcutter/Makefile + + make -C assembler + make -C disassembler + make -C fwcutter + make -C ssb_sprom +} + +package() { + cd $srcdir/b43-tools-build/debug/; python2 install.py install --root "$pkgdir/"; cd .. + + make -C assembler PREFIX="$pkgdir/usr/" install + make -C disassembler PREFIX="$pkgdir/usr/" install + make -C fwcutter PREFIX="$pkgdir/usr/" install + make -C ssb_sprom PREFIX="$pkgdir/usr/" install +} |