diff --git a/STATUS.md b/STATUS.md index aa8c89b..9bd3947 100644 --- a/STATUS.md +++ b/STATUS.md @@ -8,7 +8,7 @@ Definitions: | ----------------- | ---------- | ------------ | | `autoconf` | Yes | Yes | | `automake` | Yes | Yes | -| `bc` | +| `bc` | Yes | Yes | | `byacc` | Yes | Yes | | `bzip2` | Yes | Yes | | `chrony` | @@ -55,7 +55,6 @@ Definitions: | `sed` | Yes | Yes | | `shadow` | | `tar` | Yes | Yes | -| `texinfo` | | `xlibre-xserver` | | `xz` | Yes | Yes | | `zlib` | Yes | Yes | diff --git a/bootstrap.sh b/bootstrap.sh index 50fdfcf..1f52ec9 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -242,6 +242,7 @@ export TT_DIR=$BOOTSTRAP/root/maple/.treetap SOURCES=( autoconf automake + bc byacc bzip2 cmake @@ -250,6 +251,7 @@ SOURCES=( diffutils findutils flex + fortune-mod grep groff gzip diff --git a/rootbuild.sh b/rootbuild.sh index fbc6ab0..6035ba4 100755 --- a/rootbuild.sh +++ b/rootbuild.sh @@ -37,7 +37,7 @@ echo "Done!" # NOTE: libelf requires zlib to build. ~ahill # NOTE: fortune-mod requires cmake to build. ~ahill cd /maple -LAYER0="byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl patch perl pkgconf sed tar xz zlib" +LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl patch perl pkgconf sed tar xz zlib" LAYER1="autoconf automake flex groff libarchive libelf libtool" LAYER2="dash nasm cmake fortune-mod" PACKAGES="$LAYER0 $LAYER1 $LAYER2" diff --git a/sources/bc/bc.spec b/sources/bc/bc.spec new file mode 100644 index 0000000..c1b5fb2 --- /dev/null +++ b/sources/bc/bc.spec @@ -0,0 +1,21 @@ +# Maintainer: Alexander Hill +SRC_HASH="ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86" +SRC_NAME="bc" +SRC_URL="https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz" +SRC_VERSION="1.08.2" + +build() { + tar xf ../$SRC_FILENAME + cd bc-$SRC_VERSION/ + ./configure $TT_AUTOCONF_COMMON + # NOTE: We are setting MAKEINFO to true here because it is impossible to + # build bc without Texinfo otherwise. Texinfo is not used by any other + # package on Maple Linux, so it doesn't make sense to include it for + # the sole purpose of building bc. ~ahill + make -O -j $TT_PROCS MAKEINFO=true +} + +package() { + cd bc-$SRC_VERSION/ + make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR MAKEINFO=true +}