void-packages/srcpkgs/libmbim/template

34 lines
933 B
Bash

# Template file for 'libmbim'
pkgname=libmbim
version=1.26.2
revision=1
build_style=gnu-configure
build_helper=gir
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config"
makedepends="glib-devel libgudev-devel"
short_desc="MBIM modem protocol helper library"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.freedesktop.org/wiki/Software/libmbim/"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=10c77bf5b5eb8c92ba80e9b519923ad9b898362bc8e1928e2bc9a17eeba649af
build_options="gir"
build_options_default="gir"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" glib-devel"
fi
libmbim-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share
}
}