aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-12 10:17:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-12 10:17:03 +0000
commit4b6b14b17eba99e2b3bb572c1ec1346e2e66ed81 (patch)
tree8013eb3148707437fc7a040874afea99b4ac4f5f
parentbaec42fce76f1dbd1ee79a596cc08ccf3c39d98c (diff)
downloadaports-4b6b14b17eba99e2b3bb572c1ec1346e2e66ed81.tar.bz2
aports-4b6b14b17eba99e2b3bb572c1ec1346e2e66ed81.tar.xz
testing/libgphoto2: new aport
The core library of gphoto2, designed to allow access to digital camera by external programs. http://www.gphoto.org
-rw-r--r--testing/libgphoto2/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/libgphoto2/APKBUILD b/testing/libgphoto2/APKBUILD
new file mode 100644
index 0000000000..da6c6fc0aa
--- /dev/null
+++ b/testing/libgphoto2/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libgphoto2
+pkgver=2.4.10.1
+pkgrel=0
+pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs."
+url="http://www.gphoto.org"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="libexif-dev libusb-compat-dev"
+makedepends="libexif-dev jpeg-dev libtool libusb-compat-dev libiconv-dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ udevscriptdir=/lib/udev ./configure --prefix=/usr \
+ --with-drivers=all \
+ --disable-static \
+ --disable-rpath \
+ || return 1
+ LD_PRELOAD="" make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f $pkgdir/usr/lib/libgphoto2/$pkgver/*.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" || return 1
+}
+
+md5sums="362cd914c64b2363f4d0bd5ad07c7209 libgphoto2-2.4.10.1.tar.bz2"