From 78a4041f503d506bc0fdfae0dd570a6556dde013 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 22 Jul 2018 02:55:30 -0500 Subject: user/libgphoto2: pull in, fix up, fix license, add -lang --- user/libgphoto2/APKBUILD | 49 ++++++++++++++++++++++++++++++++++ user/libgphoto2/libgphoto2.pre-install | 5 ++++ user/libgphoto2/libgphoto2.pre-upgrade | 1 + 3 files changed, 55 insertions(+) create mode 100644 user/libgphoto2/APKBUILD create mode 100644 user/libgphoto2/libgphoto2.pre-install create mode 120000 user/libgphoto2/libgphoto2.pre-upgrade (limited to 'user/libgphoto2') diff --git a/user/libgphoto2/APKBUILD b/user/libgphoto2/APKBUILD new file mode 100644 index 000000000..cc3101241 --- /dev/null +++ b/user/libgphoto2/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: +pkgname=libgphoto2 +pkgver=2.5.16 +pkgrel=2 +pkgdesc="Digital camera library" +url="http://www.gphoto.org" +arch="all" +options="libtool" +license="LGPL-2.1+" +depends="" +depends_dev="libexif-dev libusb-dev" +makedepends="$depends_dev libjpeg-turbo-dev libtool" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +install="$pkgname.pre-install $pkgname.pre-upgrade" +replaces="libgphoto2-dev" +source="https://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2" + +build() { + cd "$builddir" + udevscriptdir=/lib/udev ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-drivers=all \ + --disable-static \ + --disable-rpath + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/libgphoto2/*/*.a \ + "$pkgdir"/usr/lib/*.a + + 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/lib/udev/rules.d/54-gphoto.rules" +} + +sha512sums="7863192c2959ffc8d771eca294adc54090192e3207cf8d3a9bf143e50034c3f1248e7fe41cad75f758ab2ad09c9258d50967b921adf3223d7c74370faa110a9e libgphoto2-2.5.16.tar.bz2" diff --git a/user/libgphoto2/libgphoto2.pre-install b/user/libgphoto2/libgphoto2.pre-install new file mode 100644 index 000000000..c696fcdca --- /dev/null +++ b/user/libgphoto2/libgphoto2.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +addgroup -S camera 2>/dev/null + +exit 0 diff --git a/user/libgphoto2/libgphoto2.pre-upgrade b/user/libgphoto2/libgphoto2.pre-upgrade new file mode 120000 index 000000000..bc38b3b08 --- /dev/null +++ b/user/libgphoto2/libgphoto2.pre-upgrade @@ -0,0 +1 @@ +libgphoto2.pre-install \ No newline at end of file -- cgit v1.2.3-70-g09d2