void-packages/srcpkgs/libgudev/template

39 lines
1.1 KiB
Bash

# Template file for 'libgudev'
pkgname=libgudev
version=236
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)
-Dvala=$(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=e50369d06d594bae615eb7aeb787de304ebaad07a26d1043cef8e9c7ab7c9524
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
}
}