2014-01-14 21:20:46 +01:00
|
|
|
# Template file for 'eudev'
|
|
|
|
|
2015-05-31 08:25:03 +02:00
|
|
|
_UDEV_VERSION="220" # compatible udev version provided
|
2014-01-14 21:20:46 +01:00
|
|
|
|
|
|
|
pkgname=eudev
|
2015-06-20 10:09:37 +02:00
|
|
|
version=3.1.2
|
2015-08-18 11:48:22 +02:00
|
|
|
revision=2
|
2015-03-06 11:56:45 +01:00
|
|
|
build_pie=yes
|
2014-01-14 21:20:46 +01:00
|
|
|
conf_files="/etc/udev/udev.conf"
|
|
|
|
build_style=gnu-configure
|
2015-06-07 07:00:53 +02:00
|
|
|
configure_args="--enable-hwdb --enable-manpages $(vopt_enable gir introspection)"
|
2015-01-11 14:46:30 +01:00
|
|
|
hostmakedepends="automake libtool pkg-config gperf glib-devel libxslt docbook-xsl"
|
2014-09-08 10:30:47 +02:00
|
|
|
makedepends="libblkid-devel libkmod-devel libglib-devel $(vopt_if gir gobject-introspection)"
|
2015-02-13 13:19:01 +01:00
|
|
|
short_desc="Gentoo's fork of systemd-udev (enhanced userland device daemon)"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-01-14 21:20:46 +01:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.gentoo.org/proj/en/eudev/"
|
|
|
|
distfiles="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz"
|
2015-06-20 10:09:37 +02:00
|
|
|
checksum=4393b69e93dd8117defde6519b199d479f9d051f52061157a1a7a41b8fe10273
|
2014-01-14 21:20:46 +01:00
|
|
|
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="systemd>=0"
|
2014-01-14 21:20:46 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2015-02-13 13:19:01 +01:00
|
|
|
post_install() {
|
|
|
|
vsv udevd
|
|
|
|
}
|
|
|
|
|
2014-01-14 21:20:46 +01:00
|
|
|
eudev-libgudev-devel_package() {
|
|
|
|
provides="libgudev-devel-${_UDEV_VERSION}_${revision}"
|
2014-06-30 17:31:37 +02:00
|
|
|
replaces="libgudev-devel>=0"
|
2014-11-24 10:54:14 +01:00
|
|
|
depends="libglib-devel eudev-libgudev>=${version}_${revision}"
|
2014-01-14 21:20:46 +01:00
|
|
|
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.*"
|
|
|
|
}
|
|
|
|
}
|