Files
BMLFS/build-scripts/scdoc.build
2023-05-30 12:06:13 -05:00

62 lines
1.9 KiB
Plaintext

# SCdoc
# Source: https://git.sr.ht/~sircmpwn/scdoc/archive/1.11.2.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Required: NONE
# Recommended: NONE
# Optional: NONE
# If optimizing, use flags with GCC
export CFLAGS="-march=native -pipe "
export CFLAGS+="-O3 -ffat-lto-objects -flto=auto "
export LDFLAGS="-flto=auto -Wl,-O2 -Wl,--as-needed "
patch -Np1 -i ../patches/scdoc-chimera/fuck-werror.patch
make PREFIX=/usr
sudo -S make PREFIX=/usr DESTDIR=$BUILD install &&
sudo -S mkdir -pv /BMAN/install
sudo -S mkdir -pv /BMAN/usr
sudo -S mv $BUILD/usr/share /BMAN/usr/
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
scdoc: SCdoc
scdoc:
scdoc: It is a simple man page generator for POSIX
scdoc: systems written in C99.
scdoc:
scdoc: https://git.sr.ht/~sircmpwn/scdoc
scdoc:
scdoc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/scdoc-1.11.2-$PSUFFIX &&
cd /BMAN
cat > /tmp/slack-desc << "EOF"
scdoc-doc: Manuals for SCdoc
scdoc-doc:
scdoc-doc: It is a simple man page generator for POSIX
scdoc-doc: systems written in C99.
scdoc-doc:
scdoc-doc: https://git.sr.ht/~sircmpwn/scdoc
scdoc-doc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/scdoc-doc-1.11.2-$NOPSUFFIX
sudo -S rm -rf /BMAN/*
sudo -S rm -rf ${BUILD}/*