summaryrefslogtreecommitdiff
path: root/repo/core/coreutils.xibuild
blob: 252bd9029e45a3e82c0089af41d41cf4f44bdb08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

DEPS=(glibc acl attr gmp libcap openssl)

SOURCE=https://ftp.gnu.org/gnu/coreutils/coreutils-9.0.tar.xz
DESC="The GNU coreutilities"

build () {
    autoreconf -fiv

    FORCE_UNSAFE_CONFIGURE=1 ./configure \
            --prefix=/usr            \
            --enable-no-install-program=kill,uptime
    make
    make DESTDIR=$PKG_DEST install 
}

package () {
    mv -v $PKG_DEST/usr/bin/chroot $PKG_DEST/usr/sbin
    mv -v $PKG_DEST/usr/share/man/man1/chroot.1 $PKG_DEST/usr/share/man/man8/chroot.8
    sed -i 's/"1"/"8"/' $PKG_DEST/usr/share/man/man8/chroot.8
}