void-packages/srcpkgs/libmtp/template
Juan RP a39ae0b92b Update packages that use autoconf cache vars set by environment/autoconf_cache.
Those cached vars are already setup globally, therefore it's not needed to
set them in the template anymore.
2014-02-04 17:27:02 +01:00

39 lines
1 KiB
Text

# Template file for 'libmtp'
pkgname=libmtp
version=1.1.6
revision=3
build_style=gnu-configure
configure_args="--disable-static --with-udev=/usr/lib/udev"
hostmakedepends="pkg-config"
makedepends="libusb-devel libgcrypt-devel"
short_desc="Library for Microsoft's Media Transfer Protocol (MTP)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://libmtp.sourceforge.net"
license="LGPL-2.1"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=3a1c1c83af91de4052eb54feb795c141b4c04a252e0031954ebbf6175970cb0a
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="libusb-devel libmtp>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}