summaryrefslogtreecommitdiff
path: root/libre/b43-tools
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-20 05:05:12 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-20 05:05:12 -0200
commit2c2747b7fcb7aac155221acfe1d8e3cc5b48155e (patch)
treeba398b0c9a29cb1c6e7c645aefa1fa5a7cbf4c94 /libre/b43-tools
parentbe4cb02230dbf70b9974fb81abc95087fcb051c7 (diff)
downloadabslibre-2c2747b7fcb7aac155221acfe1d8e3cc5b48155e.tar.gz
abslibre-2c2747b7fcb7aac155221acfe1d8e3cc5b48155e.tar.bz2
abslibre-2c2747b7fcb7aac155221acfe1d8e3cc5b48155e.zip
b43-tools: add new package to [libre]
Diffstat (limited to 'libre/b43-tools')
-rw-r--r--libre/b43-tools/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/libre/b43-tools/PKGBUILD b/libre/b43-tools/PKGBUILD
new file mode 100644
index 000000000..9ede6b4d0
--- /dev/null
+++ b/libre/b43-tools/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor (Arch): maz-1 <loveayawaka[at]gmail[dot]com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=b43-tools
+pkgver=019
+pkgrel=1
+pkgdesc="Tools for the Broadcom 43xx series WLAN chip"
+arch=('i686' 'x86_64')
+url="https://github.com/mbuesch/b43-tools"
+license=('GPL2' 'GPL3')
+depends=('python2')
+makedepends=('bison' 'flex' 'python2')
+provides=('b43-fwcutter')
+conflicts=('b43-fwcutter')
+source=("https://github.com/mbuesch/b43-tools/archive/b43-fwcutter-019.tar.gz")
+md5sums=('d8387ec57b8bced796b0f9231077501a')
+
+build() {
+ cd "$srcdir/b43-tools-b43-fwcutter-$pkgver"
+
+ 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-b43-fwcutter-$pkgver/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
+}