void-packages/srcpkgs/libgudev/template

46 lines
1.2 KiB
Text
Raw Normal View History

# Template file for 'libgudev'
. ${XBPS_SRCPKGDIR}/systemd/template
unset -f systemd_package systemd-libs_package systemd-devel_package
unset -f libudev_package libudev-devel_package post_install
# XXX keep ${version} and ${revision} sync with systemd/template.
pkgname=libgudev
version=208
revision=3
wrksrc="systemd-${version}"
configure_args+=" --enable-gudev --with-python --enable-introspection"
short_desc="GUdev shared library"
hostmakedepends+=" gobject-introspection"
makedepends+=" libglib-devel python-devel"
libgudev_package() {
short_desc="GObject-based wrapper library for libudev"
depends="libudev>=${version}"
pkg_install() {
vmove "usr/lib/libgudev*.so.*"
vmove usr/lib/girepository-1.0
}
}
libgudev-devel_package() {
depends="libglib-devel libudev-devel libgudev>=${version}_${revision}"
short_desc="GObject-based wrapper library for libudev - development files"
pkg_install() {
vmove usr/include/gudev-1.0
vmove "usr/lib/libgudev*.so"
vmove "usr/lib/pkgconfig/gudev*"
vmove usr/share/gir-1.0
}
}
systemd-python_package() {
short_desc="systemd python bindings"
depends="systemd-libs>=${version}_${revision}"
pycompile_module="systemd"
pkg_install() {
vmove "usr/lib/python*"
}
}