core/eudev/Pkgfile
Juergen Daubert 9a358786ec eudev: update to 3.0
version 3.0 introduces a new build-time dependency to opt/gperf.
See [1] for a discussion about the issue.

We've added a simple patch to remove the dependency for now and
added two preprocessed header files. These files are generated
with gperf from the /usr/include/linux/input.h kernel header which
is part of our glibc package.

For the future (CRUX 3.2) we should avoid that and add gperf to
our core collection, not a big deal because it's only one 83K
binary.

[1] https://github.com/gentoo/eudev/issues/75
2015-04-04 12:41:14 +02:00

56 lines
1.6 KiB
Plaintext

# Description: Userspace device management daemon
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: kmod
name=eudev
version=3.0
release=1
source=(http://dev.gentoo.org/~blueness/$name/$name-$version.tar.gz
81-crux.rules start_udev
$name-remove_gperf_dep.patch
keyboard-keys.tar.xz)
build() {
cd $name-$version
# See https://github.com/gentoo/eudev/issues/75
# remove build-time dependency to gperf for now
cp $SRC/keyboard-keys-{from,to}-name.h src/udev
patch -p1 -i $SRC/eudev-remove_gperf_dep.patch
# needed for static linking, e.g. dmsetup.static
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
autoreconf --force --install
./configure --prefix=/usr \
--sbindir=/sbin --bindir=/sbin \
--sysconfdir=/etc \
--with-rootprefix= \
--with-rootlibdir=/lib \
--libexecdir=/lib \
--mandir=/usr/man \
--disable-introspection \
--disable-gudev \
--disable-manpages \
--enable-split-usr
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
make install DESTDIR=$PKG
make -C man install DESTDIR=$PKG
# create binary hwdb
LD_LIBRARY_PATH=$PKG/lib \
$PKG/sbin/udevadm hwdb --update --root=$PKG
# Devices
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
mkdir -p $PKG/{lib,sbin,run}
# Add CRUX items
install -m 0755 $SRC/start_udev $PKG/sbin
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
}