summaryrefslogtreecommitdiff
path: root/testing/libgphoto2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libgphoto2/PKGBUILD')
-rw-r--r--testing/libgphoto2/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/libgphoto2/PKGBUILD b/testing/libgphoto2/PKGBUILD
new file mode 100644
index 000000000..323b863db
--- /dev/null
+++ b/testing/libgphoto2/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 152700 2012-03-08 23:18:37Z tomegun $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Tom Gundersen <teg@jklm.no>
+# Contributor: Eduardo Romero <eduardo@archlinux.org>
+# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
+
+pkgname=libgphoto2
+pkgver=2.4.13
+pkgrel=1
+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>=8' 'gd' 'libltdl' 'libusb-compat' 'libusb')
+install=libgphoto2.install
+options=('libtool')
+source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz)
+
+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}/lib/udev/rules.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" udev-rules version 136 > \
+ "${pkgdir}/lib/udev/rules.d/40-gphoto.rules"
+
+ # Remove recursive symlink
+ rm -f "${pkgdir}/usr/include/gphoto2/gphoto2"
+}
+md5sums=('7d8a1d3ae02069af381f07a0bb4bfc15')