void-packages/srcpkgs/libmtp/template
maxice8 22bd351fed libmtp: update to 1.1.15.
Closes #12897.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-03-25 20:59:18 +02:00

38 lines
1 KiB
Bash

# Template file for 'libmtp'
pkgname=libmtp
version=1.1.15
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-udev=/usr/lib/udev"
hostmakedepends="pkg-config"
makedepends="libgcrypt-devel libusb-devel"
short_desc="Library for Microsoft's Media Transfer Protocol (MTP)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://libmtp.sourceforge.net"
license="LGPL-2.1-or-later"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=d040900b46757e311b1fb3bfa8c05db09c8b6811e044bce8c88c9f3f6d3a3021
if [ "$CROSS_BUILD" ]; then
# XXX needs host mtp-hotplug
hostmakedepends+=" libmtp"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -e "s,\(util/mtp-hotplug \),mtp-hotplug ,g" -i Makefile.in
fi
}
post_install() {
sed -i "/^Unable to open/d" ${DESTDIR}/usr/lib/udev/rules.d/69-libmtp.rules
}
libmtp-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libusb-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}