summaryrefslogtreecommitdiffstats
path: root/test/gudev/Pkgfile
blob: c679082ac402ec4e922cc5b422e6f23d1d08af52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Description: Démon pour la gestion du matériel dans l'espace utilisateur
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: glib, usbutils, gobject-introspection, gperf, acl, pciutils

name=gudev
version=158
release=1
_lfs_release=20100128
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-$version.tar.bz2)
build() {

cd udev-$version

install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}}

./configure --prefix=/usr \
    --sysconfdir=/etc --sbindir=/sbin \
    --with-rootlibdir=/lib --libexecdir=/lib/udev \
    --docdir=/usr/share/doc/udev-$version \
	--with-pci-ids-path=/usr/share/pci.ids.gz

make 

make install DESTDIR=$PKG mandir="/usr/share/man"

# Remove allready included in udev
rm -r $PKG/{lib/udev/rules.d,sbin,etc}
rm -r $PKG/usr/share/man
rm $PKG/usr/{lib,include}/libudev.*
rm $PKG/usr/lib/pkgconfig/libudev.pc
rm $PKG/usr/share/pkgconfig/udev.pc
rm -r $PKG/usr/share/{gtk-doc,doc}
}