[arch-commits] Commit in libgphoto2/repos (6 files)
Andreas Radke
andyrtr at archlinux.org
Sun Oct 26 08:47:15 UTC 2014
Date: Sunday, October 26, 2014 @ 09:47:14
Author: andyrtr
Revision: 225361
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
libgphoto2/repos/testing-i686/
libgphoto2/repos/testing-i686/PKGBUILD
(from rev 225360, libgphoto2/trunk/PKGBUILD)
libgphoto2/repos/testing-i686/libgphoto2.install
(from rev 225360, libgphoto2/trunk/libgphoto2.install)
libgphoto2/repos/testing-x86_64/
libgphoto2/repos/testing-x86_64/PKGBUILD
(from rev 225360, libgphoto2/trunk/PKGBUILD)
libgphoto2/repos/testing-x86_64/libgphoto2.install
(from rev 225360, libgphoto2/trunk/libgphoto2.install)
-----------------------------------+
testing-i686/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
testing-i686/libgphoto2.install | 14 +++++++++++
testing-x86_64/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
testing-x86_64/libgphoto2.install | 14 +++++++++++
4 files changed, 114 insertions(+)
Copied: libgphoto2/repos/testing-i686/PKGBUILD (from rev 225360, libgphoto2/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2014-10-26 08:47:14 UTC (rev 225361)
@@ -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.5.1
+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
+source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz{,.asc})
+sha1sums=('d5952a74e355fb139dc97c405dcf1679f65cfe33'
+ 'SKIP')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --disable-rpath
+ make
+}
+
+package() {
+ cd $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 -fv "${pkgdir}/usr/include/gphoto2/gphoto2"
+}
Copied: libgphoto2/repos/testing-i686/libgphoto2.install (from rev 225360, libgphoto2/trunk/libgphoto2.install)
===================================================================
--- testing-i686/libgphoto2.install (rev 0)
+++ testing-i686/libgphoto2.install 2014-10-26 08:47:14 UTC (rev 225361)
@@ -0,0 +1,14 @@
+post_install() {
+ udevadm hwdb --update
+}
+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
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Copied: libgphoto2/repos/testing-x86_64/PKGBUILD (from rev 225360, libgphoto2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2014-10-26 08:47:14 UTC (rev 225361)
@@ -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.5.1
+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
+source=(http://downloads.sourceforge.net/gphoto/${pkgname}-${pkgver}.tar.gz{,.asc})
+sha1sums=('d5952a74e355fb139dc97c405dcf1679f65cfe33'
+ 'SKIP')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --disable-rpath
+ make
+}
+
+package() {
+ cd $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 -fv "${pkgdir}/usr/include/gphoto2/gphoto2"
+}
Copied: libgphoto2/repos/testing-x86_64/libgphoto2.install (from rev 225360, libgphoto2/trunk/libgphoto2.install)
===================================================================
--- testing-x86_64/libgphoto2.install (rev 0)
+++ testing-x86_64/libgphoto2.install 2014-10-26 08:47:14 UTC (rev 225361)
@@ -0,0 +1,14 @@
+post_install() {
+ udevadm hwdb --update
+}
+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
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list