From d90948d56282e0ceabbb381651b097c3078e28e8 Mon Sep 17 00:00:00 2001 From: Trevor Cook Date: Thu, 11 Jun 2020 20:23:22 -0700 Subject: [PATCH] libsass,sassc: Added; rubygem-sass, mint-y-theme: Removed. Fix #47. Signed-off-by: Willy Sudiarto Raharjo --- BUILD_ORDER | 4 +- build-cinnamon.sh | 4 +- libsass/libsass.SlackBuild | 102 +++++++++++++++++++++++ libsass/slack-desc | 12 +++ mint-y-theme/mint-y-theme.SlackBuild | 61 -------------- mint-y-theme/slack-desc | 12 --- rubygem-sass/rubygem-sass.SlackBuild | 120 --------------------------- rubygem-sass/slack-desc | 12 --- sassc/sassc.SlackBuild | 102 +++++++++++++++++++++++ sassc/slack-desc | 12 +++ 10 files changed, 232 insertions(+), 209 deletions(-) create mode 100644 libsass/libsass.SlackBuild create mode 100644 libsass/slack-desc delete mode 100644 mint-y-theme/mint-y-theme.SlackBuild delete mode 100644 mint-y-theme/slack-desc delete mode 100644 rubygem-sass/rubygem-sass.SlackBuild delete mode 100644 rubygem-sass/slack-desc create mode 100644 sassc/sassc.SlackBuild create mode 100644 sassc/slack-desc diff --git a/BUILD_ORDER b/BUILD_ORDER index 93ae95a..edec40b 100644 --- a/BUILD_ORDER +++ b/BUILD_ORDER @@ -36,9 +36,9 @@ nemo python3-xapp psutil cinnamon-screensaver -mint-y-theme mint-y-icons -rubygem-sass +libsass +sassc mint-themes cinnamon pia-manager diff --git a/build-cinnamon.sh b/build-cinnamon.sh index 5f748c1..aa89adc 100755 --- a/build-cinnamon.sh +++ b/build-cinnamon.sh @@ -80,9 +80,9 @@ for dir in \ python3-xapp \ psutil \ cinnamon-screensaver \ - mint-y-theme \ mint-y-icons \ - rubygem-sass \ + libsass \ + sassc \ mint-themes \ cinnamon \ pia-manager \ diff --git a/libsass/libsass.SlackBuild b/libsass/libsass.SlackBuild new file mode 100644 index 0000000..bc06b68 --- /dev/null +++ b/libsass/libsass.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh +# Slackware build script for libsass +# +# Yth | Pont-en-Royans, France | yth@ythogtha.org +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# This script is modified for CSB Project + +PRGNAM=libsass +VERSION=${VERSION:-3.6.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_csb} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +wget -c https://github.com/sass/libsass/archive/$VERSION/libsass-$VERSION.tar.gz + +CWD=$(pwd) +TMP=${TMP:-/tmp/csb} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="COPYING INSTALL LICENSE *.md" + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +autoreconf -i + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-static=no \ + --enable-shared=yes \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/libsass/slack-desc b/libsass/slack-desc new file mode 100644 index 0000000..6e87f4b --- /dev/null +++ b/libsass/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +libsass: libsass (Sass compiler written in C++) +libsass: +libsass: LibSass is the library of the C/C++ port of the Sass engine. +libsass: +libsass: LibSass is just a library! If you want to use LibSass to compile Sass, +libsass: you need an implementer. SassC, which is the official lightweight CLI +libsass: tool built by the same people as LibSass, is available on Slackbuilds +libsass: as sassc. +libsass: +libsass: +libsass: diff --git a/mint-y-theme/mint-y-theme.SlackBuild b/mint-y-theme/mint-y-theme.SlackBuild deleted file mode 100644 index c692d4f..0000000 --- a/mint-y-theme/mint-y-theme.SlackBuild +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# Slackware build script for mint-y-theme - -# Copyright 2016-2018 Willy Sudiarto Raharjo -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=mint-y-theme -VERSION=${VERSION:-1.2.4} -COMMITVER=${COMMITVER:-7d5dae986c2a673575cc525ba81044992c91e95c} -BUILD=${BUILD:-1} -TAG=${TAG:-_csb} - -ARCH=noarch - -wget -c https://github.com/linuxmint/mint-y-theme/archive/$COMMITVER.zip - -CWD=$(pwd) -TMP=${TMP:-/tmp/csb} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$COMMITVER -unzip $CWD/$COMMITVER.zip -cd $PRGNAM-$COMMITVER - -mkdir -p $PKG/usr/share -rm -rf debian -mv usr/share/themes $PKG/usr/share - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp README.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/mint-y-theme/slack-desc b/mint-y-theme/slack-desc deleted file mode 100644 index 839aea9..0000000 --- a/mint-y-theme/slack-desc +++ /dev/null @@ -1,12 +0,0 @@ - |-----handy-ruler------------------------------------------------------| -mint-y-theme: mint-y-theme (themes for the Cinnamon desktop) -mint-y-theme: -mint-y-theme: mint-y-theme is a theme for Cinnamon desktop -mint-y-theme: -mint-y-theme: -mint-y-theme: -mint-y-theme: Project URL: https://github.com/linuxmint/mint-y-theme -mint-y-theme: -mint-y-theme: -mint-y-theme: -mint-y-theme: diff --git a/rubygem-sass/rubygem-sass.SlackBuild b/rubygem-sass/rubygem-sass.SlackBuild deleted file mode 100644 index a9d33d2..0000000 --- a/rubygem-sass/rubygem-sass.SlackBuild +++ /dev/null @@ -1,120 +0,0 @@ -#!/bin/sh - -# Slackware build script for rubygem-sass - -# Copyright 2016 Mario Preksavec, Zagreb, Croatia -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# This script is modified for CSB Project - -PRGNAM=rubygem-sass -VERSION=${VERSION:-3.7.4} -BUILD=${BUILD:-1} -TAG=${TAG:-_csb} - -SRCNAM=sass - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -wget -c https://rubygems.org/downloads/sass-$VERSION.gem - -CWD=$(pwd) -TMP=${TMP:-/tmp/csb} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP - -DESTDIR=$( ruby -r rbconfig -e ' -include RbConfig -printf("%s/%s/gems/%s\n", - CONFIG["libdir"], - CONFIG["RUBY_INSTALL_NAME"], - CONFIG["ruby_version"] - ) -') - -gem specification $CWD/$SRCNAM-$VERSION.gem | \ - ruby -r yaml -r rbconfig -e ' -c = RbConfig::CONFIG -path = sprintf("%s/%s/gems/%s", - c["libdir"], - c["RUBY_INSTALL_NAME"], - c["ruby_version"]) -sys_gemspecs = Dir.glob(path + "/specifications/**/*.gemspec").map {|g| gs = Gem::Specification.load(g); gs.name } -obj = Gem::Specification.from_yaml($stdin) -obj.dependencies.each {|dep| - if not(dep.type == :runtime) - next - end - if not(sys_gemspecs.include?(dep.name)) - $stderr.write("WARNING: #{dep.name} gem not found\n") - sleep 0.5 - end - -}' - -gem install \ - --local \ - --no-update-sources \ - --ignore-dependencies \ - --backtrace \ - --install-dir $PKG/$DESTDIR \ - --bindir $PKG/usr/bin \ - $CWD/$SRCNAM-$VERSION.gem - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -rm -rf $PKG/$DESTDIR/cache -rmdir $PKG/$DESTDIR/{build_info,extensions} - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/rubygem-sass/slack-desc b/rubygem-sass/slack-desc deleted file mode 100644 index c0c2ab8..0000000 --- a/rubygem-sass/slack-desc +++ /dev/null @@ -1,12 +0,0 @@ - |-----handy-ruler------------------------------------------------------| -rubygem-sass: rubygem-sass (a CSS extension) -rubygem-sass: -rubygem-sass: Sass makes CSS fun again. Sass is an extension of CSS, adding nested -rubygem-sass: rules, variables, mixins, selector inheritance, and more. -rubygem-sass: It's translated to well-formatted, standard CSS using the command -rubygem-sass: line tool or a web-framework plugin. -rubygem-sass: -rubygem-sass: Homepage: http://sass-lang.com/ -rubygem-sass: -rubygem-sass: -rubygem-sass: diff --git a/sassc/sassc.SlackBuild b/sassc/sassc.SlackBuild new file mode 100644 index 0000000..9719975 --- /dev/null +++ b/sassc/sassc.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh +# Slackware build script for sassc +# +# Yth | Pont-en-Royans, France | yth@ythogtha.org +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# This script is modified for CSB Project + +PRGNAM=sassc +VERSION=${VERSION:-3.6.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_csb} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +wget -c https://github.com/sass/sassc/archive/$VERSION/sassc-$VERSION.tar.gz + +CWD=$(pwd) +TMP=${TMP:-/tmp/csb} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="Readme.md LICENSE" + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +autoreconf -i + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-static=no \ + --enable-shared=yes \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/sassc/slack-desc b/sassc/slack-desc new file mode 100644 index 0000000..57c2358 --- /dev/null +++ b/sassc/slack-desc @@ -0,0 +1,12 @@ + |-----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: Sass is a CSS pre-processor language to add on exciting, new, awesome +sassc: features to CSS. Sass was the first language of its kind and by far +sassc: the most mature and up to date codebase. +sassc: +sassc: http://sass-lang.com