39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Description: Userspace device management daemon
|
|
# URL: https://wiki.gentoo.org/wiki/Project:Eudev
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: kmod-32 eudev
|
|
|
|
name=eudev-32
|
|
version=3.2.5
|
|
release=1
|
|
source=(https://dev.gentoo.org/~blueness/eudev/eudev-$version.tar.gz)
|
|
|
|
build() {
|
|
cd eudev-$version
|
|
|
|
# needed for static linking, e.g. dmsetup.static
|
|
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
|
|
|
|
# fix for gperf 3.1
|
|
# https://github.com/gentoo/eudev/commit/5bab4d8de0dcbb8e2e7d4d5125b4aea1652a0d60
|
|
sed -i '/*keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c
|
|
|
|
autoreconf --force --install
|
|
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--sbindir=/sbin --bindir=/sbin \
|
|
--sysconfdir=/etc \
|
|
--with-rootprefix= \
|
|
--with-rootlibdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32 \
|
|
--disable-introspection \
|
|
--disable-manpages \
|
|
--enable-split-usr
|
|
|
|
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
|
make install DESTDIR=$PKG
|
|
|
|
rm -r $PKG/{etc,sbin} $PKG/usr/{include,lib32/udev,share}
|
|
}
|