2015-10-14 07:06:41 +00:00
|
|
|
# Template file for 'libgudev'
|
|
|
|
pkgname=libgudev
|
|
|
|
version=230
|
2015-10-14 07:10:21 +00:00
|
|
|
revision=2
|
2015-10-14 07:06:41 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
|
|
|
|
makedepends="libglib-devel eudev-libudev-devel"
|
|
|
|
short_desc="A library providing GObject bindings for libudev"
|
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
homepage="http://wiki.gnome.org/Projects/libgudev"
|
|
|
|
distfiles="${GNOME_SITE}/$pkgname/$version/$pkgname-$version.tar.xz"
|
|
|
|
checksum=a2e77faced0c66d7498403adefcc0707105e03db71a2b2abd620025b86347c18
|
|
|
|
|
|
|
|
build_options="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
2015-10-14 07:10:21 +00:00
|
|
|
replaces="eudev-libgudev>=0"
|
|
|
|
|
2015-10-14 07:06:41 +00:00
|
|
|
libgudev-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
2015-10-14 07:10:21 +00:00
|
|
|
replaces="eudev-libgudev-devel>=0"
|
2015-10-14 07:06:41 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|