aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-04 13:30:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-04 13:30:32 +0000
commit7c0587db535c763ee483ea0fb06147788e359cc4 (patch)
tree8bfd859697fcc28301fc853665d0fb8b96622af9 /main
parenteec431f357781096bc422bda299267861c03929f (diff)
downloadaports-7c0587db535c763ee483ea0fb06147788e359cc4.tar.bz2
aports-7c0587db535c763ee483ea0fb06147788e359cc4.tar.xz
main/libmtp: moved from testing
Diffstat (limited to 'main')
-rw-r--r--main/libmtp/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/libmtp/APKBUILD b/main/libmtp/APKBUILD
new file mode 100644
index 0000000000..af6165b964
--- /dev/null
+++ b/main/libmtp/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmtp
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="A software library for MTP media players"
+url="http://libmtp.sourceforge.net/"
+arch="all"
+license="LGPLv2+"
+depends=""
+depends_dev="libusb-compat-dev"
+makedepends="$depends_dev udev-dev libiconv-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-examples"
+source="http://download.sourceforge.net/libmtp/libmtp-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libmtp-$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
+}
+
+examples() {
+ pkgdesc="Example programs for libmtp"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="073e1c2a00ba377f68dce47727e185ae libmtp-1.1.1.tar.gz"