# $Id: PKGBUILD 206566 2014-03-01 15:43:35Z andyrtr $ # Maintainer: Jan de Groot # Contributor: Tom Gundersen # Contributor: Eduardo Romero # Contributor: Damir Perisa pkgname=libgphoto2 pkgver=2.5.3.1 pkgrel=2 pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs." arch=(i686 x86_64) url="http://www.gphoto.org" license=(LGPL) depends=('libexif' 'libjpeg' 'gd' 'libltdl' 'libusb') install=libgphoto2.install # libtool files should be obsolete meanwhile, they have been added in 2008 # https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/libgphoto2&id=e029ddabe9716521cf1e0eeb1f1988e4104e15b6 #options=('libtool') source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.bz2{,.asc}) md5sums=('aad2607a84442769c14f6acce2ca1ddf' 'SKIP') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure \ --prefix=/usr \ --disable-rpath make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install # Remove unused udev helper rm -rf "${pkgdir}/usr/lib/udev" install -m755 -d "${pkgdir}/usr/lib/udev/hwdb.d" LD_LIBRARY_PATH="${pkgdir}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \ CAMLIBS="${pkgdir}/usr/lib/libgphoto2/${pkgver}" \ "${pkgdir}/usr/lib/libgphoto2/print-camera-list" hwdb > \ "${pkgdir}/usr/lib/udev/hwdb.d/20-gphoto.hwdb" # Remove recursive symlink rm -f "${pkgdir}/usr/include/gphoto2/gphoto2" }