# rltools, http://rootlinux.org

name=rltools
version=1.0
source=(rlver.c rlver.1 sndtest adduser setwm setwm.1 pkgtool pkgtool.1)

build() {
    gcc ${CFLAGS} rlver.c -o rlver
    mkdir -p $PKG/usr/bin
    mkdir -p $PKG/usr/sbin
    mkdir -p $PKG/usr/man/man1
    cp rlver $PKG/usr/bin
    cp sndtest $PKG/usr/bin
    cp adduser $PKG/usr/sbin
    cp setwm $PKG/usr/sbin
    cp pkgtool $PKG/usr/sbin
    chown root.root $PKG/usr/bin/* $PKG/usr/sbin/*
    chmod 755 $PKG/usr/bin/* $PKG/usr/sbin/*
    strip $PKG/usr/bin/* $PKG/usr/sbin/*
    cp rlver.1 $PKG/usr/man/man1
    cp setwm.1 $PKG/usr/man/man1
    cp pkgtool.1 $PKG/usr/man/man1
    chown root.root $PKG/usr/man/man1/*
    chmod 644 $PKG/usr/man/man1/*
    gzip -9 $PKG/usr/man/man?/*
}
