mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
30 lines
660 B
Bash
30 lines
660 B
Bash
pkgname=libmtp
|
|
pkgver=1.1.11
|
|
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=('eea14dd30ddd08bbe39cfcb57564a4b8')
|
|
|
|
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
|
|
}
|