From 3792e3874accbc868e7032042f1ecefdef25638e Mon Sep 17 00:00:00 2001 From: root Date: Sat, 10 Mar 2012 00:01:15 +0000 Subject: Sat Mar 10 00:01:15 UTC 2012 --- testing/libgphoto2/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++ testing/libgphoto2/libgphoto2.install | 6 +++++ 2 files changed, 49 insertions(+) create mode 100644 testing/libgphoto2/PKGBUILD create mode 100644 testing/libgphoto2/libgphoto2.install (limited to 'testing/libgphoto2') 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 +# Contributor: Tom Gundersen +# Contributor: Eduardo Romero +# Contributor: Damir Perisa + +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') diff --git a/testing/libgphoto2/libgphoto2.install b/testing/libgphoto2/libgphoto2.install new file mode 100644 index 000000000..c7944414f --- /dev/null +++ b/testing/libgphoto2/libgphoto2.install @@ -0,0 +1,6 @@ +post_upgrade() { +if [ "$(vercmp $2 2.14.13)" -lt 0 ]; then + groupdel camera &>/dev/null + echo "Users no longer need to be in the 'camera' group to use camera devices" +fi +} -- cgit v1.2.3-54-g00ecf