void-packages/srcpkgs/eudev/template

49 lines
1.3 KiB
Bash

# Template file for 'eudev'
_UDEV_VERSION="220" # compatible udev version provided
pkgname=eudev
version=3.2.6
revision=2
_commit=96c5552c52fc9b5b5f25e8ff7d5fb3e6e518474d
wrksrc="eudev-${_commit}"
conf_files="/etc/udev/udev.conf"
patch_args="-Np1"
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"
short_desc="Gentoo's fork of systemd-udev (enhanced userland device daemon)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://github.com/gentoo/eudev"
distfiles="https://github.com/gentoo/eudev/archive/${_commit}.tar.gz"
checksum=8ab63b0d3a87b4aafc767481ea168cdef30b4a24a20b2f29e74e960826bb3b6f
pre_configure() {
autoreconf -fi
}
post_install() {
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.*"
}
}