compat-32/eudev-32/Pkgfile

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2014-02-16 16:38:02 +01:00
# Description: Userspace device management daemon
2016-06-11 06:46:55 +02:00
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
2014-02-16 16:38:02 +01:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: kmod-32 eudev
name=eudev-32
2016-06-11 06:46:55 +02:00
version=3.2
2014-02-16 16:38:02 +01:00
release=1
2015-11-18 15:12:27 +01:00
source=(http://dev.gentoo.org/~blueness/eudev/eudev-$version.tar.gz)
2014-02-16 16:38:02 +01:00
build() {
cd eudev-$version
2015-05-05 14:43:03 +02:00
# needed for static linking, e.g. dmsetup.static
2014-02-16 16:38:02 +01:00
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
2015-05-05 14:43:03 +02:00
autoreconf --force --install
2014-02-16 16:38:02 +01:00
./configure --prefix=/usr \
--libdir=/usr/lib32 \
2014-08-12 12:54:22 +02:00
--sbindir=/sbin --bindir=/sbin \
2014-02-16 16:38:02 +01:00
--sysconfdir=/etc \
2014-08-12 12:54:22 +02:00
--with-rootprefix= \
--with-rootlibdir=/usr/lib32 \
--libexecdir=/usr/lib32 \
2014-02-16 16:38:02 +01:00
--disable-introspection \
--disable-manpages \
2015-05-05 14:43:03 +02:00
--enable-split-usr
2014-02-16 16:38:02 +01:00
2014-06-15 21:18:34 +02:00
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
2014-02-16 16:38:02 +01:00
make install DESTDIR=$PKG
2015-06-25 11:19:33 +02:00
rm -r $PKG/{etc,sbin} $PKG/usr/{include,lib32/udev,share}
2014-02-16 16:38:02 +01:00
}