#!/bin/sh # SPDX-FileCopyrightText: 2021 Andrius Štikonas # SPDX-FileCopyrightText: 2021 Paul Dersey # SPDX-FileCopyrightText: 2021 fosslinux # # SPDX-License-Identifier: GPL-3.0-or-later set -ex mkdir build 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 patch -Np0 -i ../../patches/ls-strcmp.patch patch -Np0 -i ../../patches/touch-getdate.patch # Build and install make -f Makefile PREFIX=${prefix} make -f Makefile PREFIX=${prefix} install cd ../.. # Checksums sha256sum -c checksums/pass1