[arch-commits] Commit in libgphoto2/repos (6 files)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Fri Jul 5 18:02:35 UTC 2013
Date: Friday, July 5, 2013 @ 20:02:35
Author: bpiotrowski
Revision: 189717
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
libgphoto2/repos/staging-i686/
libgphoto2/repos/staging-i686/PKGBUILD
(from rev 189716, libgphoto2/trunk/PKGBUILD)
libgphoto2/repos/staging-i686/libgphoto2.install
(from rev 189716, libgphoto2/trunk/libgphoto2.install)
libgphoto2/repos/staging-x86_64/
libgphoto2/repos/staging-x86_64/PKGBUILD
(from rev 189716, libgphoto2/trunk/PKGBUILD)
libgphoto2/repos/staging-x86_64/libgphoto2.install
(from rev 189716, libgphoto2/trunk/libgphoto2.install)
-----------------------------------+
staging-i686/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
staging-i686/libgphoto2.install | 6 +++++
staging-x86_64/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
staging-x86_64/libgphoto2.install | 6 +++++
4 files changed, 98 insertions(+)
Copied: libgphoto2/repos/staging-i686/PKGBUILD (from rev 189716, libgphoto2/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2013-07-05 18:02:35 UTC (rev 189717)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Eduardo Romero <eduardo at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgname=libgphoto2
+pkgver=2.5.2
+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' 'gd' 'libltdl' 'libusb')
+install=libgphoto2.install
+options=('libtool')
+source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz)
+md5sums=('d9f4462957e59bf2b2eb3b1ea8423570')
+
+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/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 175 > \
+ "${pkgdir}/usr/lib/udev/rules.d/40-gphoto.rules"
+
+ # Remove recursive symlink
+ rm -f "${pkgdir}/usr/include/gphoto2/gphoto2"
+}
Copied: libgphoto2/repos/staging-i686/libgphoto2.install (from rev 189716, libgphoto2/trunk/libgphoto2.install)
===================================================================
--- staging-i686/libgphoto2.install (rev 0)
+++ staging-i686/libgphoto2.install 2013-07-05 18:02:35 UTC (rev 189717)
@@ -0,0 +1,6 @@
+post_upgrade() {
+if [ "$(vercmp $2 2.4.13)" -lt 0 ]; then
+ groupdel camera &>/dev/null
+ echo "Users no longer need to be in the 'camera' group to use camera devices"
+fi
+}
Copied: libgphoto2/repos/staging-x86_64/PKGBUILD (from rev 189716, libgphoto2/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2013-07-05 18:02:35 UTC (rev 189717)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Eduardo Romero <eduardo at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgname=libgphoto2
+pkgver=2.5.2
+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' 'gd' 'libltdl' 'libusb')
+install=libgphoto2.install
+options=('libtool')
+source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz)
+md5sums=('d9f4462957e59bf2b2eb3b1ea8423570')
+
+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/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 175 > \
+ "${pkgdir}/usr/lib/udev/rules.d/40-gphoto.rules"
+
+ # Remove recursive symlink
+ rm -f "${pkgdir}/usr/include/gphoto2/gphoto2"
+}
Copied: libgphoto2/repos/staging-x86_64/libgphoto2.install (from rev 189716, libgphoto2/trunk/libgphoto2.install)
===================================================================
--- staging-x86_64/libgphoto2.install (rev 0)
+++ staging-x86_64/libgphoto2.install 2013-07-05 18:02:35 UTC (rev 189717)
@@ -0,0 +1,6 @@
+post_upgrade() {
+if [ "$(vercmp $2 2.4.13)" -lt 0 ]; then
+ groupdel camera &>/dev/null
+ echo "Users no longer need to be in the 'camera' group to use camera devices"
+fi
+}
More information about the arch-commits
mailing list