2014-04-09 06:29:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Copyright 2013 Chess Griffin <chess.griffin@gmail.com> Raleigh, NC
|
2019-07-02 02:33:52 +02:00
|
|
|
# Copyright 2013-2019 Willy Sudiarto Raharjo <willysr@slackware-id.org>
|
2014-04-09 06:29:35 +02:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Based on the xfce-build-all.sh script by Patrick J. Volkerding
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Set to 1 if you'd like to install/upgrade package as they are built.
|
|
|
|
# This is recommended.
|
|
|
|
INST=1
|
|
|
|
|
|
|
|
# This is where all the compilation and final results will be placed
|
2016-03-11 01:06:40 +01:00
|
|
|
TMP=${TMP:-/tmp/csb}
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
2014-04-09 06:29:35 +02:00
|
|
|
|
|
|
|
# This is the original directory where you started this script
|
|
|
|
CSBROOT=$(pwd)
|
|
|
|
|
2016-07-05 04:22:03 +02:00
|
|
|
# Check for duplicate sources (default: OFF)
|
|
|
|
CHECKDUPLICATE=0
|
|
|
|
|
2014-04-09 06:29:35 +02:00
|
|
|
# Loop for all packages
|
|
|
|
for dir in \
|
2023-12-11 01:55:03 +01:00
|
|
|
python3-webencodings \
|
2023-12-11 02:02:25 +01:00
|
|
|
tinycss2 \
|
2022-07-22 11:36:18 +02:00
|
|
|
xdotool \
|
2022-06-16 17:29:12 +02:00
|
|
|
gsound \
|
2019-11-24 09:53:21 +01:00
|
|
|
pytz \
|
2019-11-24 10:57:22 +01:00
|
|
|
libtimezonemap \
|
2016-12-10 18:04:35 +01:00
|
|
|
setproctitle \
|
2015-10-22 02:38:04 +02:00
|
|
|
ptyprocess \
|
2014-04-09 06:29:35 +02:00
|
|
|
cjs \
|
2016-11-08 16:34:34 +01:00
|
|
|
python-pam \
|
2014-04-09 06:29:35 +02:00
|
|
|
cinnamon-desktop \
|
|
|
|
pangox-compat \
|
2018-04-25 03:20:28 +02:00
|
|
|
libgnomekbd \
|
2020-08-19 17:59:12 +02:00
|
|
|
xapp \
|
2014-04-09 06:29:35 +02:00
|
|
|
cinnamon-session \
|
|
|
|
cinnamon-settings-daemon \
|
|
|
|
gnome-menus \
|
2015-05-03 11:57:51 +02:00
|
|
|
cinnamon-menus \
|
2014-04-09 06:29:35 +02:00
|
|
|
cinnamon-control-center \
|
|
|
|
zenity \
|
|
|
|
cogl \
|
|
|
|
clutter \
|
|
|
|
clutter-gtk \
|
|
|
|
muffin \
|
|
|
|
caribou \
|
|
|
|
pexpect \
|
|
|
|
metacity \
|
2015-05-03 17:12:53 +02:00
|
|
|
polib \
|
2016-05-31 19:48:16 +02:00
|
|
|
cinnamon-translations \
|
2014-04-09 06:29:35 +02:00
|
|
|
nemo \
|
2020-04-26 21:42:48 +02:00
|
|
|
python3-xapp \
|
2014-04-09 06:29:35 +02:00
|
|
|
cinnamon-screensaver \
|
2016-08-06 06:18:00 +02:00
|
|
|
mint-y-icons \
|
2023-12-10 20:00:29 +01:00
|
|
|
mint-l-icons \
|
2018-11-21 14:54:53 +01:00
|
|
|
mint-themes \
|
2022-12-01 00:48:37 +01:00
|
|
|
mint-cursor-themes \
|
2016-11-10 12:25:56 +01:00
|
|
|
cinnamon \
|
2017-09-26 15:33:23 +02:00
|
|
|
pia-manager \
|
2014-04-09 06:29:35 +02:00
|
|
|
; do
|
|
|
|
# Get the package name
|
2014-04-12 10:35:10 +02:00
|
|
|
package=$(echo $dir | cut -f2- -d /)
|
|
|
|
|
2014-04-09 06:29:35 +02:00
|
|
|
# Change to package directory
|
2014-04-12 10:35:10 +02:00
|
|
|
cd $CSBROOT/$dir || exit 1
|
2014-04-09 06:29:35 +02:00
|
|
|
|
|
|
|
# Get the version
|
2014-10-25 19:16:08 +02:00
|
|
|
version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
2014-04-09 06:29:35 +02:00
|
|
|
|
2014-04-11 04:53:12 +02:00
|
|
|
# Get the build
|
|
|
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
|
|
|
|
2016-07-05 04:22:03 +02:00
|
|
|
if [ $CHECKDUPLICATE -eq 1 ]; then
|
|
|
|
# Check for duplicate sources
|
|
|
|
sourcefile="$(ls -l $CSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
|
|
|
if [ $sourcefile -gt 1 ]; then
|
|
|
|
echo "You have following duplicate sources:"
|
|
|
|
ls $CSBROOT/$dir/${package}-*.tar.?z* | cut -d " " -f1
|
|
|
|
echo "Please delete sources other than ${package}-$version to avoid problems"
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-04-09 06:29:35 +02:00
|
|
|
fi
|
2014-04-12 10:35:10 +02:00
|
|
|
|
2014-04-09 06:29:35 +02:00
|
|
|
# The real build starts here
|
2016-03-03 04:53:10 +01:00
|
|
|
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
|
2014-04-09 06:29:35 +02:00
|
|
|
if [ "$INST" = "1" ]; then
|
2016-07-05 07:55:48 +02:00
|
|
|
PACKAGE=`ls $OUTPUT/${package}-${version}-*-${build}*csb.txz`
|
2014-10-25 19:16:08 +02:00
|
|
|
if [ -f "$PACKAGE" ]; then
|
|
|
|
upgradepkg --install-new --reinstall "$PACKAGE"
|
2014-04-09 06:29:35 +02:00
|
|
|
else
|
2016-03-30 10:39:12 +02:00
|
|
|
echo "Error: package to upgrade "$PACKAGE" not found in $OUTPUT"
|
2014-04-09 06:29:35 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2014-04-12 10:35:10 +02:00
|
|
|
|
2014-04-09 06:29:35 +02:00
|
|
|
# back to original directory
|
|
|
|
cd $CSBROOT
|
|
|
|
done
|