From a6cb3ddef295c5feb4e03ee198dbb31cdf62d518 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 Mar 2012 00:01:32 +0000 Subject: Mon Mar 12 00:01:32 UTC 2012 --- extra/libgphoto2/PKGBUILD | 21 +++++++++++++-------- extra/libgphoto2/libgphoto2.install | 18 ++++-------------- 2 files changed, 17 insertions(+), 22 deletions(-) (limited to 'extra/libgphoto2') diff --git a/extra/libgphoto2/PKGBUILD b/extra/libgphoto2/PKGBUILD index b2fe27b17..629bea861 100644 --- a/extra/libgphoto2/PKGBUILD +++ b/extra/libgphoto2/PKGBUILD @@ -1,23 +1,26 @@ -# $Id: PKGBUILD 145711 2011-12-28 14:52:22Z jgc $ -# Maintainer: Eduardo Romero +# $Id: PKGBUILD 152973 2012-03-10 23:27:06Z tomegun $ +# Maintainer: Jan de Groot +# Contributor: Tom Gundersen +# Contributor: Eduardo Romero # Contributor: Damir Perisa pkgname=libgphoto2 -pkgver=2.4.11 +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') +depends=('libexif' 'libjpeg>=8' 'gd' 'libltdl' 'libusb-compat' 'libusb') install=libgphoto2.install options=('libtool') source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz) -md5sums=('a2230c31e320acb7ececd90bc02fe515') build() { cd "${srcdir}/${pkgname}-${pkgver}" - udevscriptdir=/lib/udev ./configure --prefix=/usr --with-drivers=all --disable-static --disable-rpath + ./configure \ + --prefix=/usr \ + --disable-rpath make } @@ -25,14 +28,16 @@ package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install - rm -f ${pkgdir}/usr/lib/libgphoto2/${pkgver}/*.a + # 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 group camera mode 0660 > \ + "${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/extra/libgphoto2/libgphoto2.install b/extra/libgphoto2/libgphoto2.install index 3aee9ff8a..c7944414f 100644 --- a/extra/libgphoto2/libgphoto2.install +++ b/extra/libgphoto2/libgphoto2.install @@ -1,16 +1,6 @@ -post_install() { - getent group camera >/dev/null || usr/sbin/groupadd -g 97 camera - /bin/cat </dev/null || usr/sbin/groupadd -g 97 camera -} - -post_remove() { - usr/sbin/groupdel camera &>/dev/null +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