void-packages/srcpkgs/eudev/template

50 lines
1.3 KiB
Bash

# Template file for 'eudev'
_UDEV_VERSION="243" # compatible udev version provided
pkgname=eudev
version=3.2.9
revision=1
build_style=gnu-configure
configure_args="--enable-hwdb --enable-manpages --disable-introspection"
hostmakedepends="automake libtool pkg-config gperf libxslt docbook-xsl"
makedepends="libblkid-devel libkmod-devel"
checkdepends="xz"
short_desc="Gentoo's fork of systemd-udev (enhanced userland device daemon)"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/gentoo/eudev"
distfiles="https://github.com/gentoo/eudev/archive/v${version}.tar.gz"
checksum=7d281276b480da3935d1acb239748c2c9db01a8043aad7e918ce57a223d8cd24
conf_files="/etc/udev/udev.conf"
pre_configure() {
autoreconf -fi
}
post_install() {
mv "${DESTDIR}/etc/udev/hwdb.d" "${DESTDIR}/usr/lib/udev"
vsv udevd
}
eudev-libudev-devel_package() {
provides="libudev-devel-${_UDEV_VERSION}_${revision}"
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}"
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}