# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=libmtp pkgver=1.1.13 pkgrel=0 pkgdesc="A software library for MTP media players" url="http://libmtp.sourceforge.net/" arch="all" license="LGPL2+" depends="" depends_dev="libusb-compat-dev" makedepends="$depends_dev eudev-dev" install="" subpackages="$pkgname-dev $pkgname-examples" source="http://download.sourceforge.net/libmtp/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$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 \ --build=$CBUILD \ --host=$CHOST \ --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 } examples() { pkgdesc="Example programs for libmtp" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="99d5a277806f29f1d27a64a478e344916e8bfc9949a41a807c16d37bd29ec99dc3f36d504cfc6e67f1e91ee932a7cf82f13d4c9fe14b7e34333d9b12b04fff77 libmtp-1.1.13.tar.gz"