summaryrefslogtreecommitdiff
path: root/repo/system/eudev.xibuild
blob: c6bb6da00da587c8fb9584577c8502c5a3b4e95e (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
#!/bin/sh

MAKEDEPS="make autoconf automake"
DEPS="gperf udev-rules kmod"

PKG_VER=3.2.10
SOURCE=https://dev.gentoo.org/~blueness/eudev/eudev-$PKG_VER.tar.gz
DESC="Programs for dynamic creation of device nodes"
ADDITIONAL="
    default-rules.patch
    load-fbcon.patch
"

prepare () {
    #apply_patches
    autoreconf -fiv
    sed -i 's/\$(LN_S) -n -f/\$(LN_S) -f/' src/udev/Makefile.in
}

build () {
    ./configure --prefix=/usr           \
            --bindir=/usr/sbin      \
            --sbindir=/usr/sbin     \
            --libexecdir=/usr/lib   \
            --sysconfdir=/etc       \
            --enable-manpages       \
            --disable-static
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}