void-packages/srcpkgs/libgudev/template
2019-08-05 17:13:52 +02:00

34 lines
1,011 B
Bash

# Template file for 'libgudev'
pkgname=libgudev
version=233
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) --disable-umockdev"
hostmakedepends="pkg-config glib-devel"
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=587c4970eb23f4e2deee2cb1fb7838c94a78c578f41ce12cac0a3f4a80dabb03
build_options="gir"
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_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}