void-packages/srcpkgs/eudev/template
2015-06-02 09:52:10 +02:00

78 lines
2.1 KiB
Bash

# Template file for 'eudev'
_UDEV_VERSION="220" # compatible udev version provided
pkgname=eudev
version=3.1
revision=3
build_pie=yes
conf_files="/etc/udev/udev.conf"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --enable-hwdb --enable-manpages $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gperf glib-devel libxslt docbook-xsl"
makedepends="libblkid-devel libkmod-devel libglib-devel $(vopt_if gir gobject-introspection)"
short_desc="Gentoo's fork of systemd-udev (enhanced userland device daemon)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.gentoo.org/proj/en/eudev/"
distfiles="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz"
checksum=5da313031001debd0983472d07aa03ad186e2db9bc9be0ce4769c9f16391372c
replaces="systemd>=0"
# Package build options
build_options="gir"
pre_configure() {
autoreconf -fi
}
post_install() {
vsv udevd
}
eudev-libgudev-devel_package() {
provides="libgudev-devel-${_UDEV_VERSION}_${revision}"
replaces="libgudev-devel>=0"
depends="libglib-devel 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}"
replaces="libgudev>=0"
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}"
replaces="libudev-devel>=0"
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}"
replaces="libudev>=0"
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}