core/libmtp/PKGBUILD

33 lines
768 B
Bash
Raw Normal View History

2013-11-14 08:52:16 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: abveritas@chakra-project.org
2010-03-14 23:48:48 +08:00
pkgname=libmtp
2015-06-10 17:41:06 +08:00
pkgver=1.1.9
pkgrel=1
pkgdesc="Library implementation of the Media Transfer Protocol"
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://libmtp.sourceforge.net"
license=('LGPL')
2015-06-10 17:41:06 +08:00
depends=('libusb' 'libgcrypt')
2014-09-01 04:09:14 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
2015-06-10 17:41:06 +08:00
md5sums=('d515b38a5b5d5ef235b01ebba47412df')
2010-03-14 23:48:48 +08:00
build() {
2015-06-10 17:41:06 +08:00
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --with-udev=/usr/lib/udev
make
2010-03-14 23:48:48 +08:00
}
2015-06-10 17:41:06 +08:00
check() {
cd $pkgname-$pkgver
make -k check
}
package() {
2015-06-10 17:41:06 +08:00
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
}