void-packages/srcpkgs/libgudev/template

39 lines
1.1 KiB
Bash

# Template file for 'libgudev'
pkgname=libgudev
version=237
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)
-Dvapi=$(vopt_if vala enabled disabled)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala vala)"
makedepends="libglib-devel eudev-libudev-devel"
short_desc="Library providing GObject bindings for libudev"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://wiki.gnome.org/Projects/libgudev"
distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa
build_options="gir vala"
build_options_default="gir"
replaces="eudev-libgudev>=0"
libgudev-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
replaces="eudev-libgudev-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}