summaryrefslogtreecommitdiff
path: root/extra/libmtp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libmtp/PKGBUILD')
-rw-r--r--extra/libmtp/PKGBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/extra/libmtp/PKGBUILD b/extra/libmtp/PKGBUILD
index 27ab1f9f9..5c1dec838 100644
--- a/extra/libmtp/PKGBUILD
+++ b/extra/libmtp/PKGBUILD
@@ -1,27 +1,34 @@
-# $Id: PKGBUILD 180848 2013-03-26 23:07:40Z tomegun $
+# $Id: PKGBUILD 198802 2013-11-04 17:57:04Z andyrtr $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: damir <damir@archlinux.org>
# Contributor: Kevin Edmonds <edmondskevin@hotmail.com>
pkgname=libmtp
pkgver=1.1.6
-pkgrel=1
+pkgrel=3
pkgdesc="Library implementation of the Media Transfer Protocol"
arch=("i686" "x86_64" "mips64el")
url="http://libmtp.sourceforge.net"
license=('LGPL')
depends=('libusb' 'libgcrypt')
-options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('87835626dbcf39e62bfcdd4ae6da2063')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
./configure --prefix=/usr --with-udev=/usr/lib/udev
make
}
+check() {
+ cd $pkgname-$pkgver
+ make -k check
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
+
+ # fix broken udev rule
+ sed -i "/^Unable to open/d" ${pkgdir}/usr/lib/udev/rules.d/69-libmtp.rules
}
-md5sums=('87835626dbcf39e62bfcdd4ae6da2063')