summaryrefslogtreecommitdiff
path: root/core/coreutils/MAKEPKG
blob: 4cd7b65e3b0770d826859748d85d4a97518d2bed (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
35
36
37
38
39
40
41
42
43
#!/bin/mkpkg
# description: GNU core utilities
# url: https://www.gnu.org/software/coreutils/

name=coreutils
version=9.12
release=2
depends=(acl attr libcap2 gmp)
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)

sha256sums=(
    "a480198559733e9b3da999e90543ac6f888a2caa544d8d664c5a1f17e528e210"
)

build() {
    cd $name-$version

    FORCE_UNSAFE_CONFIGURE=1 \
    ./configure \
        --prefix=/ \
        --bindir=/bin \
        --libexecdir=/lib \
        --mandir=/usr/share/man \
        --disable-nls \
        --enable-install-program=hostname

    make
    make install DESTDIR=$PKG

    mkdir -p $PKG/usr/bin
    ln -s /bin/env $PKG/usr/bin/env

    rm -rf $PKG/share
    rm -rf $PKG/lib
    
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh