summaryrefslogtreecommitdiff
path: root/repo/util/procps-ng.xibuild
blob: 0bdcfd5d089417b6ed5d6e06b90e06d65e95278b (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
#!/bin/sh

MAKEDEPS="make "
DEPS="utmps ncurses"

PKG_VER=3.3.17
SOURCE=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-$PKG_VER.tar.xz
DESC="Utilities for monitoring your system and its processes"

ADDITIONAL="
    https://raw.githubusercontent.com/dslm4515/Musl-LFS/master/patches/procps-mlfs/use_utmpx.patch
"

prepare () {
    patch -Np1 -i use_utmpx.patch

    sed -i '1i#include <langinfo.h>' proc/escape.c
}

build () {
    ./configure --prefix=/usr                        \
            --docdir=/usr/share/doc/procps-ng-$PKG_VER \
            --disable-static                         \
            --disable-kill
    make
}

#check () {
    #make check
#}

package () {
    make DESTDIR=$PKG_DEST install 
}