live-bootstrap/sysa/heirloom-devtools-070527/heirloom-devtools-070527.kaem

46 lines
958 B
Plaintext
Raw Normal View History

2021-01-26 21:30:45 +00:00
#!/bin/sh
2021-02-08 06:23:31 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
2021-02-08 06:23:31 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
2021-01-26 21:30:45 +00:00
set -ex
mkdir build
cd build
2021-01-26 22:22:56 +00:00
lexdir=/lex
2021-01-26 21:30:45 +00:00
# Extract
bunzip2 ../src/${pkg}.tar.bz2
tar xf ../src/${pkg}.tar ${pkg}/yacc ${pkg}/lex
cd ${pkg}
# Prepare and patch
patch -Np0 -i ../../patches/yacc_remove_wchar.patch
2021-01-26 22:22:56 +00:00
patch -Np0 -i ../../patches/lex_remove_wchar.patch
2021-01-26 21:30:45 +00:00
# Build yacc
cd yacc
make -f Makefile.mk CC=tcc AR=tcc\ -ar CFLAGS=-DMAXPATHLEN=100\ -DEILSEQ=84\ -DMB_LEN_MAX=100 LDFLAGS=-lgetopt RANLIB=true
# Install yacc
install yacc ${bindir}
install -m 644 yaccpar /
2021-01-26 22:22:56 +00:00
# Build lex
cd ../lex
make -f Makefile.mk CC=tcc AR=tcc\ -ar CFLAGS=-DEILSEQ=84\ -DMB_LEN_MAX=100 LDFLAGS=-lgetopt RANLIB=true
# Install lex
mkdir ${lexdir}
install lex ${bindir}
install libl.a ${libdir}
install -m 644 ncform ${lexdir}
2021-01-26 21:30:45 +00:00
cd ../../..
# Checksums
sha256sum -c checksums