This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/eudev/template

55 lines
1.6 KiB
Bash

# Template file for 'eudev'
_UDEV_VERSION="243" # compatible udev version provided
pkgname=eudev
version=3.2.12
revision=2
build_style=gnu-configure
configure_args="--enable-hwdb --enable-manpages"
hostmakedepends="pkg-config gperf"
makedepends="libblkid-devel libkmod-devel"
checkdepends="xz tar perl"
short_desc="Fork of systemd-udev (enhanced userland device daemon)"
maintainer="Tracker_Friendly <jliwin98@pm.me>"
license="GPL-2.0-or-later"
homepage="https://github.com/eudev-project/eudev"
changelog="https://github.com/eudev-project/eudev/releases"
distfiles="https://github.com/eudev-project/eudev/releases/download/v${version}/eudev-${version}.tar.gz"
checksum=ccdd64ec3c381d3c3ed0e99d2e70d1f62988c7763de89ca7bdffafa5eacb9ad8
conf_files="/etc/udev/udev.conf"
if [ "$XBPS_ALLOW_CHROOT_BREAKOUT" ]; then
# requires unshare(2) which is not available in chroot
make_check=no
fi
post_install() {
rm -rf ${DESTDIR}/usr/lib/udev
mv "${DESTDIR}/etc/udev/hwdb.d" "${DESTDIR}/usr/lib/udev"
mkdir -p "${DESTDIR}/etc/dinit.d/"
cp "${FILESDIR}/udevd" "${DESTDIR}/etc/dinit.d/udevd"
cp "${FILESDIR}/udevd.sh" "${DESTDIR}/etc/dinit.d/udevd.sh"
}
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.*"
}
}