mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 04:14:46 +08:00
33 lines
768 B
Bash
33 lines
768 B
Bash
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
# Contributor: abveritas@chakra-project.org
|
|
|
|
pkgname=libmtp
|
|
pkgver=1.1.9
|
|
pkgrel=1
|
|
pkgdesc="Library implementation of the Media Transfer Protocol"
|
|
arch=('x86_64')
|
|
url="http://libmtp.sourceforge.net"
|
|
license=('LGPL')
|
|
depends=('libusb' 'libgcrypt')
|
|
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('d515b38a5b5d5ef235b01ebba47412df')
|
|
|
|
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
|
|
}
|