diff options
author | Simon Conseil | 2015-06-13 00:19:00 +0200 |
---|---|---|
committer | Simon Conseil | 2015-06-13 00:19:00 +0200 |
commit | 51cca02dc7d163d989b23968b8cbf0f6c9cc1708 (patch) | |
tree | 163426f7526bcc91780d5e1e5206eb95f0510861 | |
download | aur-51cca02dc7d163d989b23968b8cbf0f6c9cc1708.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1914317ee617 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = libmtp-git + pkgdesc = Library implementation of the Media Transfer Protocol + pkgver = 1.1.9.r6.gd07cd29 + pkgrel = 1 + url = http://libmtp.sourceforge.net + arch = i686 + arch = x86_64 + license = LGPL + makedepends = git + depends = libusb + depends = libgcrypt + provides = libmtp + conflicts = libmtp + source = libmtp-git::git://git.code.sf.net/p/libmtp/code + md5sums = SKIP + +pkgname = libmtp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..56df3ffcd3bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Based on the following version of extra/libmtp: +# $Id: PKGBUILD 155745 2012-04-06 00:05:58Z tomegun $ +# +# Contributor: damir <damir@archlinux.org> +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> +# Contributor: John Karahalis <john.karahalis@gmail.com> +# Maintainer: Simon Conseil <contact+aur at saimon dot org> + +pkgname=libmtp-git +pkgver=1.1.9.r6.gd07cd29 +pkgrel=1 +pkgdesc="Library implementation of the Media Transfer Protocol" +arch=("i686" "x86_64") +url="http://libmtp.sourceforge.net" +license=('LGPL') +depends=('libusb' 'libgcrypt') +makedepends=('git') +conflicts=('libmtp') +provides=('libmtp') +source=("$pkgname"::'git://git.code.sf.net/p/libmtp/code') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long --tags | sed -r 's/libmtp-//' | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$pkgname" + yes | ./autogen.sh + ./configure --prefix=/usr --with-udev=/usr/lib/udev + make +} + +package() { + cd "$srcdir/$pkgname" + make DESTDIR="${pkgdir}" install + + # fix broken udev rule + sed -i "/^Unable to open/d" ${pkgdir}/usr/lib/udev/rules.d/69-libmtp.rules +} |