updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / barry-git / PKGBUILD
bloba68167da69b268cec6cf6cdc0a1140d659444c4e
1 # Contributor: Ray Blostein <rblostein [at] gmail.com>
2 pkgname=barry-git
3 pkgver=20110203
4 pkgrel=1
5 pkgdesc="Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld."
6 arch=('i686' 'x86_64')
7 url="http://www.netdirect.ca/software/packages/barry/"
8 license=('GPL')
9 depends=('libusb' 'zlib' 'libglademm' 'libtar' 'libsigc++')
10 makedepends=('git' 'make' 'gcc' 'patch' 'pkg-config' 'autoconf' 'automake' 'libtool' 'gettext')
11 optdepends=('fuse: for bfuse')
12 provides=('barry')
13 conflicts=('barry')
14 source=('tarfile-ops-nt.cc.patch')
15 md5sums=('1f808132b402c4ea68a0d1fc3f19142c')
18 _gitroot="git://repo.or.cz/barry.git"
19 _gitname="barry"
21 build() {
22   cd "$srcdir"
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."
29   else
30     git clone $_gitroot
31   fi
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"
39 # Apply patches
40   cd "$srcdir/$_gitname-build/src"
41   patch -p0 < $srcdir/tarfile-ops-nt.cc.patch
42   cd "$srcdir/$_gitname-build"
44 # Build the package
45   ./buildgen.sh
46   ./configure --prefix=/usr --enable-gui
47   make || return 1
48   make DESTDIR="$pkgdir/" install
50 # Remove libtool files
51   find "$pkgdir/" -name "*.la" -exec rm {} \;
52