39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'libgudev'
|
|
pkgname=libgudev
|
|
version=238
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="$(vopt_feature gir introspection) $(vopt_feature vala vapi)"
|
|
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"
|
|
changelog="https://gitlab.gnome.org/GNOME/libgudev/-/raw/master/NEWS"
|
|
distfiles="${GNOME_SITE}/libgudev/${version}/libgudev-${version}.tar.xz"
|
|
checksum=61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1
|
|
|
|
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
|
|
}
|
|
}
|