1 # Contributor: Ray Blostein <rblostein [at] gmail.com>
5 pkgdesc="Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld."
7 url="http://www.netdirect.ca/software/packages/barry/"
9 depends=('libusb' 'zlib' 'libglademm' 'libtar' 'libsigc++')
10 makedepends=('git' 'make' 'gcc' 'patch' 'pkg-config' 'autoconf' 'automake' 'libtool' 'gettext')
11 optdepends=('fuse: for bfuse')
14 source=('tarfile-ops-nt.cc.patch')
15 md5sums=('1f808132b402c4ea68a0d1fc3f19142c')
18 _gitroot="git://repo.or.cz/barry.git"
23 msg "Connecting to GIT server...."
25 # Download sources from the git repository
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build/src"
41 patch -p0 < $srcdir/tarfile-ops-nt.cc.patch
42 cd "$srcdir/$_gitname-build"
46 ./configure --prefix=/usr --enable-gui
48 make DESTDIR="$pkgdir/" install
50 # Remove libtool files
51 find "$pkgdir/" -name "*.la" -exec rm {} \;