void-packages/srcpkgs/libmtp/template
Gonzalo Tornaría 9b342c56f0 libmtp: update to 1.1.19.
Also: use group `plugdev` to grant r/w permission to mtp devices.
2022-04-11 01:39:58 +02:00

36 lines
1,008 B
Bash

# Template file for 'libmtp'
pkgname=libmtp
version=1.1.19
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="http://libmtp.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=deb4af6f63f5e71215cfa7fb961795262920b4ec6cb4b627f55b30b18aa33228
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"
}
}