live-bootstrap/sysa/sed-4.0.9/sed-4.0.9.kaem

42 lines
776 B
Plaintext
Raw Normal View History

2021-01-11 17:57:12 +00:00
#!/bin/sh
2021-02-08 06:23:31 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
2021-02-08 06:23:31 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
2021-01-11 17:57:12 +00:00
set -ex
mkdir build src
cd build
# Extract
cp ${distfiles}/${pkg}.tar.gz ../src/
2022-05-14 19:40:52 +01:00
gzip -d -f ../src/${pkg}.tar.gz
tar xf ../src/${pkg}.tar
cd ${pkg}
cp ../../mk/main.mk Makefile
2021-01-11 17:57:12 +00:00
2021-01-20 01:43:40 +00:00
# Create config.h
2021-01-11 17:57:12 +00:00
catm config.h
# Build
make -f Makefile LIBC=mes
2021-01-11 17:57:12 +00:00
# Install
cp sed/sed ${prefix}/bin/sed
chmod 755 ${prefix}/bin/sed
2021-01-20 01:43:40 +00:00
cd ../..
# Checksums
if match x${UPDATE_CHECKSUMS} xTrue; then
sha256sum -o ${pkg}.checksums \
/usr/bin/sed
cp ${pkg}.checksums ${srcdir}
else
sha256sum -c ${pkg}.checksums
fi