aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-11-16 00:11:17 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-11-16 00:11:17 -0600
commit81fe7bf3de90433d13d20da6105fb14c42c2718b (patch)
tree2e95bc2d1f92eb1273acf433c6439d8fbaeb5bab /main
parent838946addd02060bc0d3415e0ef58432a6b51b22 (diff)
downloadaports-81fe7bf3de90433d13d20da6105fb14c42c2718b.tar.bz2
aports-81fe7bf3de90433d13d20da6105fb14c42c2718b.tar.xz
main/gphoto2: new aport
Diffstat (limited to 'main')
-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 0000000000..7e0651e7a0
--- /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"