diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-31 03:27:12 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-31 03:27:12 +0000 |
commit | 5a81550adad5ccde4ad6924cfee2b2ef96d02c98 (patch) | |
tree | 5baa7121fc2147a5e1aae552ff6a715922e35aaa /extra/libmtp/PKGBUILD | |
parent | 53db844f5c8c3d0a6752bb40f65c613020084541 (diff) |
Tue Dec 31 03:24:15 UTC 2013
Diffstat (limited to 'extra/libmtp/PKGBUILD')
-rw-r--r-- | extra/libmtp/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/libmtp/PKGBUILD b/extra/libmtp/PKGBUILD new file mode 100644 index 000000000..f69b8c10d --- /dev/null +++ b/extra/libmtp/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 202983 2013-12-30 08:41:18Z foutrelis $ +# Maintainer: Tom Gundersen <teg@jklm.no> +# Contributor: damir <damir@archlinux.org> +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> + +pkgname=libmtp +pkgver=1.1.6 +pkgrel=5 +pkgdesc="Library implementation of the Media Transfer Protocol" +arch=("i686" "x86_64") +url="http://libmtp.sourceforge.net" +license=('LGPL') +depends=('libusb' 'libgcrypt') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") +md5sums=('87835626dbcf39e62bfcdd4ae6da2063') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --with-udev=/usr/lib/udev + make +} + +check() { + cd $pkgname-$pkgver + make -k check +} + +package() { + 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 +} |