core/libmtp/PKGBUILD

38 lines
961 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
pkgver=1.1.6
2014-07-04 04:07:50 +08:00
pkgrel=4
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')
depends=('libusbx' 'libgcrypt')
2010-03-14 23:48:48 +08:00
options=('!libtool')
2014-07-04 04:07:50 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"music-players.h.new")
md5sums=('87835626dbcf39e62bfcdd4ae6da2063'
'eee4f256cf1a095e8322b2f86fb26f1d')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
mv --verbose ${srcdir}/music-players.h.new src/music-players.h
}
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --with-udev=/usr/lib/udev
make
2010-03-14 23:48:48 +08:00
}
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
}