summaryrefslogtreecommitdiff
path: root/libre-testing/b43-tools-git
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/b43-tools-git')
-rw-r--r--libre-testing/b43-tools-git/PKGBUILD53
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
+}