updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / barry / PKGBUILD
blobc2a43d54dc687eb6d9ba5d3e2aaf30cb0ad9664f
1 # Contributor: Ray Blostein <rblostein [at] gmail.com>
2 pkgname=barry
3 pkgver=0.17.1
4 pkgrel=0
5 pkgdesc="Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld."
6 url='http://www.netdirect.ca/software/packages/barry'
7 license=('GPL')
8 arch=('i686' 'x86_64')
9 depends=('libusb' 'zlib' 'libglademm' 'libtar')
10 makedepends=('make' 'gcc' 'patch' 'pkg-config' 'autoconf' 'automake' 'libtool' 'gettext')
12 optdepends=('fuse: for bfuse')
13 conflicts=('barry-git')
14 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
15         'tarfile-ops-nt.cc.patch')
17 md5sums=('645b2816c79584ac36f63ce69dbbfd24'
18          '1f808132b402c4ea68a0d1fc3f19142c')
20 build() {
21 # Apply patches
22   cd $srcdir/$pkgname-$pkgver/src
23   patch -p0 < $srcdir/tarfile-ops-nt.cc.patch
25 # Build the package
26   cd $srcdir/$pkgname-$pkgver
27   ./configure --prefix=/usr --enable-gui
28   make || return 1
29   make DESTDIR=$pkgdir install
31 # Remove libtool files
32   find "$pkgdir/" -name "*.la" -exec rm {} \;