live-bootstrap/sysa/coreutils-5.0/coreutils-5.0.kaem

39 lines
844 B
Plaintext
Raw Normal View History

2021-01-20 19:23:48 +00:00
#!/bin/sh
2021-02-08 06:23:31 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
2021-01-20 19:23:48 +00:00
set -ex
2021-06-20 23:58:04 +01:00
mkdir build
2021-01-20 19:23:48 +00:00
cd build
# Extract
bunzip2 ../src/${pkg}.tar.bz2
tar xf ../src/${pkg}.tar
cd ${pkg}
cp ../../mk/main.mk Makefile
# Patch and prepare
cp lib/fnmatch_.h lib/fnmatch.h
cp lib/ftw_.h lib/ftw.h
cp lib/search_.h lib/search.h
catm config.h
patch -Np0 -i ../../patches/modechange.patch
patch -Np0 -i ../../patches/mbstate.patch
2021-01-22 21:41:47 +00:00
patch -Np0 -i ../../patches/ls-strcmp.patch
2021-03-13 19:32:19 +00:00
patch -Np0 -i ../../patches/touch-getdate.patch
2021-01-20 19:23:48 +00:00
# Build and install
make -f Makefile PREFIX=${prefix}
make -f Makefile PREFIX=${prefix} install
cd ../..
# Checksums
sha256sum -c checksums/pass1