Files
BMLFS/build-scripts/sassc.build
2024-02-01 09:54:18 -06:00

78 lines
2.8 KiB
Bash

#! /bin/bash
# sassc
# Source: https://github.com/sass/sassc/archive/3.6.2/sassc-3.6.2.tar.gz
# Source: https://github.com/sass/libsass/archive/3.6.5/libsass-3.6.6.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: NONE
# Optional: NONE
# if optimizing with GCC
export CFLAGS="-march=native -pipe "
export CFLAGS+="-fno-lto -fstack-protector-strong -fzero-call-used-regs=used "
tar -xf ../libsass-3.6.5.tar.gz &&
pushd libsass-3.6.5 &&
autoreconf -fiv &&
./configure --prefix=/usr --disable-static $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
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------------------------------------------------------|
libsass: libsass
libsass:
libsass: Sass is a CSS pre-processor language to add on exciting, new, awesome
libsass: features to CSS. Sass was the first language of its kind and by far
libsass: the most mature and up to date codebase.
libsass:
libsass: http://sass-lang.com
libsass:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/libsass-3.6.6-$PSUFFIX
sudo rm -rf $BUILD/* &&
popd &&
autoreconf -fiv &&
./configure --prefix=/usr $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
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------------------------------------------------------|
sassc: sassc (C/C++ port of the Sass CSS precompiler)
sassc:
sassc: SassC is a wrapper around libsass (http://github.com/sass/libsass)
sassc: used to generate a useful command-line application that can be
sassc: installed and packaged for several operating systems.
sassc:
sassc: http://sass-lang.com
sassc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/sassc-3.6.2-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*