summaryrefslogtreecommitdiff
path: root/libre-testing/b43-tools-git/PKGBUILD
blob: 42e331f7b89a05ebc675f2dcb843f55f17d6861c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
}