2013-10-27 09:25:13 +01:00
|
|
|
# Template file for 'libgudev'
|
|
|
|
|
|
|
|
. ${XBPS_SRCPKGDIR}/systemd/template
|
2014-01-02 09:51:20 +01:00
|
|
|
unset -f systemd-libs_package systemd-devel_package
|
2013-10-27 09:25:13 +01:00
|
|
|
unset -f libudev_package libudev-devel_package post_install
|
|
|
|
|
|
|
|
pkgname=libgudev
|
2013-10-27 09:34:27 +01:00
|
|
|
version=208
|
2014-03-16 19:29:43 +01:00
|
|
|
revision=6
|
2013-10-27 09:25:13 +01:00
|
|
|
|
2014-03-16 19:29:43 +01:00
|
|
|
configure_args+=" --enable-gudev --with-python"
|
2013-11-27 10:56:06 +01:00
|
|
|
hostmakedepends+=" glib-devel python-devel"
|
2013-10-27 09:25:13 +01:00
|
|
|
makedepends+=" libglib-devel python-devel"
|
2014-01-02 09:51:20 +01:00
|
|
|
short_desc="GObject-based wrapper library for libudev"
|
|
|
|
depends="libudev>=${version}"
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# We are only interested in gudev and python bindings.
|
|
|
|
make DESTDIR=${wrksrc}/install_gudev install
|
|
|
|
|
|
|
|
vmkdir usr/lib/pkgconfig
|
|
|
|
vmkdir usr/include
|
|
|
|
vmkdir usr/share
|
|
|
|
|
|
|
|
mv install_gudev/usr/lib/libgudev* ${DESTDIR}/usr/lib
|
2014-01-24 00:09:59 +01:00
|
|
|
if [ -d install_gudev/usr/lib/girepository-1.0 ]; then
|
|
|
|
mv install_gudev/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib
|
|
|
|
fi
|
2014-01-02 09:51:20 +01:00
|
|
|
mv install_gudev/usr/include/gudev* ${DESTDIR}/usr/include
|
|
|
|
mv install_gudev/usr/lib/pkgconfig/gudev* ${DESTDIR}/usr/lib/pkgconfig
|
2014-01-24 00:14:02 +01:00
|
|
|
if [ -d install_gudev/usr/share/gir-1.0 ]; then
|
|
|
|
mv install_gudev/usr/share/gir-1.0 ${DESTDIR}/usr/share
|
|
|
|
fi
|
2014-01-02 09:51:20 +01:00
|
|
|
mv install_gudev/usr/lib/python* ${DESTDIR}/usr/lib
|
|
|
|
}
|
2013-10-27 09:25:13 +01:00
|
|
|
|
2013-11-27 10:56:06 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2013-10-27 09:25:13 +01:00
|
|
|
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*"
|
2013-11-27 10:56:06 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-10-27 09:25:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
systemd-python_package() {
|
|
|
|
short_desc="systemd python bindings"
|
|
|
|
depends="systemd-libs>=${version}_${revision}"
|
|
|
|
pycompile_module="systemd"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python*"
|
|
|
|
}
|
|
|
|
}
|