47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Description: Gobject interface for udev.
|
|
# URL: http://gudev.sourceforge.net/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
|
# Depends on: gobject-introspection gperf eudev
|
|
|
|
name=gudev
|
|
version=3.1.2
|
|
release=1
|
|
source=(http://dev.gentoo.org/~blueness/eudev/eudev-$version.tar.gz
|
|
eudev-remove_gperf_dep.patch
|
|
keyboard-keys.tar.xz)
|
|
|
|
build() {
|
|
cd eudev-$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 \
|
|
--disable-manpages \
|
|
--enable-split-usr
|
|
|
|
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
|
make install DESTDIR=$SRC/tmp
|
|
|
|
install -d $PKG/{lib,usr/{include,lib/pkgconfig,share/gir-1.0}}
|
|
mv $SRC/tmp/usr/include/gudev* $PKG/usr/include
|
|
mv $SRC/tmp/usr/lib/libgudev* $PKG/usr/lib
|
|
mv $SRC/tmp/usr/lib/pkgconfig/$name-1.0.pc $PKG/usr/lib/pkgconfig
|
|
mv $SRC/tmp/usr/share/gir-1.0/* $PKG/usr/share/gir-1.0/
|
|
}
|