void-packages/srcpkgs/libmtp/template

40 lines
1 KiB
Text
Raw Normal View History

2010-05-09 16:57:08 +00:00
# Template file for 'libmtp'
pkgname=libmtp
2014-09-08 09:51:09 +00:00
version=1.1.8
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-udev=/usr/lib/udev"
hostmakedepends="pkg-config"
makedepends="libusb-devel libgcrypt-devel"
2010-05-09 16:57:08 +00:00
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"
2012-07-09 16:15:29 +00:00
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
2014-09-08 09:51:09 +00:00
checksum=3f9e87536aa40e560d0c153a505e38096b1df5ea15fad783691e9a8ca4dd2282
2013-12-18 12:12:58 +00:00
if [ "$CROSS_BUILD" ]; then
# XXX needs host mtp-hotplug
hostmakedepends+=" libmtp>=1.1.6_4"
2013-12-18 12:12:58 +00:00
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}"
2013-09-23 08:55:23 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-09-23 08:55:23 +00:00
vmove "usr/lib/*.so"
}
}