2014-01-14 21:20:46 +01:00
|
|
|
# Template file for 'eudev'
|
|
|
|
|
2014-07-25 12:20:37 +02:00
|
|
|
_UDEV_VERSION="215" # compatible udev version provided
|
2014-01-14 21:20:46 +01:00
|
|
|
|
|
|
|
pkgname=eudev
|
2014-07-25 12:20:37 +02:00
|
|
|
version=1.9
|
|
|
|
revision=1
|
2014-01-14 21:20:46 +01:00
|
|
|
conf_files="/etc/udev/udev.conf"
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--enable-libkmod"
|
|
|
|
hostmakedepends="automake libtool pkg-config gperf glib-devel"
|
|
|
|
makedepends="libblkid-devel libkmod-devel libglib-devel"
|
|
|
|
short_desc="systemd's udev fork (enhanced udev)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.gentoo.org/proj/en/eudev/"
|
|
|
|
distfiles="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz"
|
2014-07-25 12:20:37 +02:00
|
|
|
checksum=8f17e92f1177ce9352bde00360e227a7cbb3b97ac8816174bee34be80e44cef0
|
2014-01-14 21:20:46 +01:00
|
|
|
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="systemd>=0"
|
|
|
|
|
2014-06-29 12:30:32 +02:00
|
|
|
# Some udev rules expect an 'input' group.
|
|
|
|
system_groups="input:25"
|
|
|
|
|
2014-01-14 21:20:46 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
eudev-libgudev-devel_package() {
|
|
|
|
provides="libgudev-devel-${_UDEV_VERSION}_${revision}"
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="libgudev-devel>=0"
|
2014-01-14 21:20:46 +01:00
|
|
|
depends="eudev-libgudev>=${version}_${revision}"
|
|
|
|
short_desc+=" - gudev development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/gudev-1.0
|
|
|
|
vmove usr/lib/pkgconfig/gudev-1.0.pc
|
|
|
|
vmove usr/lib/libgudev-1.0.a
|
|
|
|
vmove usr/lib/libgudev-1.0.so
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
eudev-libgudev_package() {
|
|
|
|
provides="libgudev-${_UDEV_VERSION}_${revision}"
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="libgudev>=0"
|
2014-01-14 21:20:46 +01:00
|
|
|
short_desc+=" - gudev runtime library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgudev-1.0.so.*"
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
eudev-libudev-devel_package() {
|
|
|
|
provides="libudev-devel-${_UDEV_VERSION}_${revision}"
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="libudev-devel>=0"
|
2014-01-14 21:20:46 +01:00
|
|
|
depends="eudev-libudev>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/share/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
eudev-libudev_package() {
|
|
|
|
provides="libudev-${_UDEV_VERSION}_${revision}"
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="libudev>=0"
|
2014-01-14 21:20:46 +01:00
|
|
|
short_desc+=" - runtime library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
|
|
|
}
|