# procps, http://procps.sourceforge.net

name=procps
version=3.2.7
release=1
source=(http://procps.sourceforge.net/$name-$version.tar.gz sysctl.conf)

build() {
    cd $name-$version
    cat Makefile | sed "s/-O2\ -g3/$CFLAGS/" >Makefile
    make
    make DESTDIR=$PKG install
    install -D -m0644 ../sysctl.conf $PKG/etc/sysctl.conf
    rm -f $PKG/bin/kill \
          $PKG/usr/share/man/man1/kill.1
    rm -f $PKG/usr/bin/uptime \
          $PKG/usr/share/man/man1/uptime.1
    ln -sf pgrep $PKG/usr/bin/pkill
    ln -sf skill $PKG/usr/bin/snice
    chmod +w $PKG -R
}
