updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / osmocombb-git / PKGBUILD
blob256e0a883d8d1828cb21e9ea418d1a336e22a583
1 # Maintainer: onny <onny@project-insanity.org>
2 # Contributor: onny <onny@project-insanity.org>
4 pkgname=osmocombb-git
5 pkgver=20110512
6 pkgrel=1
7 pkgdesc="An Free Software / Open Source GSM Baseband software implementation."
8 arch=('i686' 'x86_64')
9 url="http://bb.osmocom.org/"
10 license="GPL3"
11 makedepends=('cross-arm-elf-gcc' 'libtool' 'autoconf' 'git' 'make' 'gcc' 'pkg-config')
12 depends=('shtool')
13 optdepends=('gpsd')
14 backup=()
15 options=('!strip')
17 _gitroot="http://cgit.osmocom.org/cgit/osmocom-bb"
18 _gitname="osmocom-bb"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29     cd osmocom-bb
30     git pull --rebase
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
35   
36   cd src
37   make
38
39 package () {
40   mkdir -p $pkgdir/opt/osmocombb/host/osmocon
41   mkdir -p $pkgdir/opt/osmocombb/host/layer23
42   mkdir -p $pkgdir/opt/osmocombb/host/rita_pll
44   find . \( -name "*.c" -o -name "*.h" -o -name "*.in" -o -name "*.am" -o -name "*.o" -o -name "Makefile" \) -print | xargs -i rm {}
46   cp -r $srcdir/osmocom-bb/src/* $pkgdir/opt/osmocombb/
47   cp -ar $srcdir/osmocom-bb/doc $pkgdir/opt/osmocombb/
48   cp -ar $srcdir/osmocom-bb/include $pkgdir/opt/osmocombb/
50   #cp $arcdir/osmocombb/host/osmocon/osmocon $pkgdir/opt/osmocombb/host/osmocon/
51   #cp $arcdir/osmocombb/host/osmocon/osmoload $pkgdir/opt/osmocombb/host/osmocon/
52   #cp $arcdir/osmocombb/host/layer23/src/mobile/mobile $pkgdir/opt/osmocombb/host/layer23/
53   #cp $arcdir/osmocombb/host/layer23/src/mobile/libmobile.a $pkgdir/opt/osmocombb/host/layer23/
54   #cp $arcdir/osmocombb/host/layer23/src/misc/bcch_scan $pkgdir/opt/osmocombb/host/layer23/
55   #cp $arcdir/osmocombb/host/layer23/src/misc/cbch_sniff $pkgdir/opt/osmocombb/host/layer23/
56   #cp $arcdir/osmocombb/host/layer23/src/misc/ccch_scan $pkgdir/opt/osmocombb/host/layer23/
57   #cp $arcdir/osmocombb/host/layer23/src/misc/cell_log $pkgdir/opt/osmocombb/host/layer23/
58   #cp $arcdir/osmocombb/host/layer23/src/misc/echo_test $pkgdir/opt/osmocombb/host/layer23/
59   #cp $arcdir/osmocombb/host/layer23/src/common/liblayer23.a $pkgdir/opt/osmocombb/host/layer23/common/
61   #cp -r $srcdir/osmocom-bb/src/* $pkgdir/opt/osmocombb/
62   #cp -ar $srcdir/osmocom-bb/doc $pkgdir/opt/osmocombb/
63   #cp -ar $srcdir/osmocom-bb/include $pkgdir/opt/osmocombb/