# Contributor: Andreas Schönfelder pkgname=gphoto2-svn pkgver=13130 pkgrel=1 pkgdesc="gPhoto is a program and library framework that lets users download pictures from their digital cameras." arch=(i686 x86_64) url="http://www.gphoto.org" license=('GPL') depends=('libexif' 'libusb' 'libgphoto2>=2.4.99.7') makedepends=('subversion' 'automake' 'autoconf' 'libtool' 'gettext' 'pkg-config') provides=('gphoto2') conflicts=('gphoto2') replaces=('gphoto2') _svntrunk=https://gphoto.svn.sourceforge.net/svnroot/gphoto/trunk/gphoto2 _svnmod=gphoto2 build() { cd "$srcdir" if [ -d $_svnmod/.svn ]; then (cd $_svnmod && svn up -r $pkgver) else svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod fi msg "SVN checkout done or server timeout" msg "Starting make..." rm -rf "$srcdir/$_svnmod-build" cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build" cd "$srcdir/$_svnmod-build" # # BUILD # autoreconf --install --symlink ./configure --prefix=/usr make || return 1 make DESTDIR="$pkgdir/" install }