1 # Maintainer: onny <onny@project-insanity.org>
2 # Contributor: onny <onny@project-insanity.org>
7 pkgdesc="An Free Software / Open Source GSM Baseband software implementation."
9 url="http://bb.osmocom.org/"
11 makedepends=('cross-arm-elf-gcc' 'libtool' 'autoconf' 'git' 'make' 'gcc' 'pkg-config')
17 _gitroot="http://cgit.osmocom.org/cgit/osmocom-bb"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
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/