summaryrefslogtreecommitdiffstats
path: root/main/gphoto2
diff options
context:
space:
mode:
Diffstat (limited to 'main/gphoto2')
-rw-r--r--main/gphoto2/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/gphoto2/APKBUILD b/main/gphoto2/APKBUILD
new file mode 100644
index 000000000..7e0651e7a
--- /dev/null
+++ b/main/gphoto2/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=gphoto2
+pkgver=2.4.11
+pkgrel=0
+pkgdesc="commandline utilities for accessing cameras"
+url="http://www.gphoto.org/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="libgphoto2-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="http://sourceforge.net/projects/gphoto/files/gphoto/$pkgver/gphoto2-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/gphoto2-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="2635075f702b40eb2e95a80658bd4773 gphoto2-2.4.11.tar.bz2"