void-packages/srcpkgs/libmtp/template

38 lines
1.1 KiB
Bash

# Template file for 'libmtp'
pkgname=libmtp
version=1.1.21
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-udev=/usr/lib/udev
--with-udev-group=plugdev"
hostmakedepends="pkg-config"
makedepends="libgcrypt-devel libusb-devel"
short_desc="Library for Microsoft's Media Transfer Protocol (MTP)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://libmtp.sourceforge.net"
changelog="https://sourceforge.net/projects/libmtp/files/libmtp/${version}/README"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=c4ffa5ab8c8f48c91b0047f2e253c101c418d5696a5ed65c839922a4280872a7
if [ "$CROSS_BUILD" ]; then
# XXX needs host mtp-hotplug
hostmakedepends+=" libmtp"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
vsed -e "s,\(util/mtp-hotplug \),mtp-hotplug ,g" -i Makefile.in
fi
}
libmtp-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}