core/libmtp/PKGBUILD
Weng Xuetian 140417c340 fix broken udev rule for libffado, libmtp, move dosfstools to /sbin
udev rule has invalid syntax, and fsck.vfat couldn't be found at /sbin
 which is also complained by systemd (maybe because we use separate usr).
Since other fsck binary is also in sbin such move should be ok.
2014-04-04 16:57:24 +00:00

32 lines
770 B
Bash

# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: abveritas@chakra-project.org
pkgname=libmtp
pkgver=1.1.6
pkgrel=3
pkgdesc="Library implementation of the Media Transfer Protocol"
arch=('x86_64')
url="http://libmtp.sourceforge.net"
license=('LGPL')
depends=('libusbx' 'libgcrypt')
options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('87835626dbcf39e62bfcdd4ae6da2063')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --with-udev=/usr/lib/udev
make
}
package() {
cd "${srcdir}/${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
}