From e3cf204444f121823f91c4a85439393802f0f354 Mon Sep 17 00:00:00 2001 From: Thorn Inurcde Date: Sun, 31 Jul 2016 17:01:14 -0400 Subject: [PATCH] overhail --- Apps/amarok/amarok.SlackBuild | 195 +-- Apps/amarok/slack-desc | 20 - Apps/digikam/README | 4 +- Apps/digikam/digikam-R14.0.3.SlackBuild | 255 --- Apps/digikam/digikam.SlackBuild | 137 ++ Apps/dolphin/README | 1 + Apps/dolphin/dolphin.SlackBuild | 187 +- Apps/dolphin/slack-desc | 0 Apps/gtk-qt-engine/.d3lphinview | 1 - Apps/gtk-qt-engine/{README.txt => README} | 0 Apps/gtk-qt-engine/gtk-qt-engine.SlackBuild | 118 +- Apps/gtk-qt-engine/slack-desc | 0 .../gtk3-tqt-engine.SlackBuild | 127 ++ Apps/gwenview-i18n/gwenview-i18n.SlackBuild | 141 ++ Apps/gwenview/README | 3 - Apps/gwenview/gwenview-R14.0.3.SlackBuild | 223 --- .../gwenview/gwenview-i18n-R14.0.3.SlackBuild | 260 --- Apps/gwenview/gwenview.SlackBuild | 118 ++ Apps/k3b-i18n/k3b-i18n.SlackBuild | 123 ++ Apps/k3b/k3b-R14.0.3.SlackBuild | 225 --- Apps/k3b/k3b-i18n-R14.0.3.SlackBuild | 235 --- Apps/k3b/k3b.SlackBuild | 120 ++ Apps/k9copy/README | 5 + Apps/k9copy/k9copy.SlackBuild | 125 ++ Apps/kbookreader/kbookreader.SlackBuild | 120 +- Apps/kbookreader/slack-desc | 2 +- Apps/kile/README | 30 + Apps/kile/kile.SlackBuild | 125 ++ .../kipi-plugins-R14.0.3.SlackBuild | 243 --- .../kipi-plugins/libkdcraw-R14.0.3.SlackBuild | 241 --- .../kipi-plugins/libkexiv2-R14.0.3.SlackBuild | 227 --- Apps/kipi-plugins/libkipi-R14.0.3.SlackBuild | 241 --- Apps/knemo/knemo-R14.0.3.SlackBuild | 237 --- Apps/knemo/knemo.SlackBuild | 130 ++ Apps/knights/README | 11 + Apps/knights/es.po | 1546 +++++++++++++++++ Apps/knights/knights.SlackBuild | 135 ++ Apps/ksquirrel/README | 2 - .../ksquirrel-R14.0.3-en-docs.tar.xz | Bin Apps/ksquirrel/ksquirrel-R14.0.3.SlackBuild | 238 --- Apps/ksquirrel/ksquirrel.SlackBuild | 133 ++ .../ksquirrel/libksquirrel-R14.0.3.SlackBuild | 224 --- Apps/potracegui/README | 1 + Apps/potracegui/potracegui.SlackBuild | 120 ++ Apps/potracegui/reformat-message.patch | 55 + Apps/tde-style-qtcurve/slack-desc | 0 .../tde-style-qtcurve.SlackBuild | 117 +- Apps/tdeio-locate/slack-desc | 0 Apps/tdeio-locate/tdeio-locate.SlackBuild | 119 +- BUILD-TDE.sh | 392 +++++ Core/BUILD-ORDER | 13 - Core/README.md | 3 - .../README.md => Core/tde-i18n/README | 2 +- {Apps => Core}/tde-i18n/tde-i18n.SlackBuild | 155 +- Core/tdeaddons/arkplugin-diffs-1 | 0 Core/tdeaddons/slack-desc | 0 Core/tdeaddons/tdeaddons.SlackBuild | 123 +- Core/tdeartwork/slack-desc | 0 Core/tdeartwork/tdeartwork.SlackBuild | 126 +- Core/tdebase/README | 22 + Core/tdebase/config/Xsession | 2 +- Core/tdebase/config/backgroundrc | 0 Core/tdebase/doinst.sh | 30 +- Core/tdebase/profile.d/tde.csh | 2 +- Core/tdebase/profile.d/tde.sh | 4 +- Core/tdebase/slack-desc | 0 Core/tdebase/tdebase.SlackBuild | 172 +- Core/tdebase/xinitrc.tde | 4 +- .../tdegames/tdegames.SlackBuild | 133 +- Core/tdegraphics/slack-desc | 0 Core/tdegraphics/tdegraphics.SlackBuild | 144 +- Core/tdelibs/slack-desc | 2 +- Core/tdelibs/tdelibs.SlackBuild | 126 +- Core/tdemultimedia/slack-desc | 0 Core/tdemultimedia/tdemultimedia.SlackBuild | 160 +- Core/tdenetwork/README | 0 Core/tdenetwork/slack-desc | 0 Core/tdenetwork/tdenetwork.SlackBuild | 187 +- Core/tdenetwork/tdenetwork.SlackBuild-cmake | 111 ++ Core/tdepim/slack-desc | 0 Core/tdepim/tdepim.SlackBuild | 118 +- Core/tdesdk/slack-desc | 0 Core/tdesdk/tdesdk.SlackBuild | 120 +- Core/tdetoys/slack-desc | 0 Core/tdetoys/tdetoys.SlackBuild | 119 +- Core/tdeutils/README | 0 Core/tdeutils/slack-desc | 0 Core/tdeutils/tdeutils.SlackBuild | 125 +- Core/tdevelop/slack-desc | 0 Core/tdevelop/tdevelop.SlackBuild | 122 +- Core/tdewebdev/slack-desc | 19 - Core/tdewebdev/tdewebdev.SlackBuild | 181 +- Deps/BUILD-ORDER | 7 - Deps/arts/arts.SlackBuild | 124 +- Deps/arts/slack-desc | 0 Deps/dbus-1-tqt/dbus-1-tqt.SlackBuild | 124 +- Deps/dbus-1-tqt/slack-desc | 0 Deps/dbus-tqt/dbus-tqt.SlackBuild | 125 +- Deps/dbus-tqt/slack-desc | 0 Deps/libart_lgpl/README | 0 Deps/libart_lgpl/libart_lgpl.SlackBuild | 110 +- Deps/libart_lgpl/slack-desc | 0 Deps/tqca-tls/slack-desc | 0 Deps/tqca-tls/tqca-tls.SlackBuild | 122 +- Deps/tqt3/profile.d/tqt3.csh | 12 +- Deps/tqt3/profile.d/tqt3.sh | 13 +- Deps/tqt3/slack-desc | 0 Deps/tqt3/tqt3.SlackBuild | 172 +- Deps/tqtinterface/slack-desc | 0 Deps/tqtinterface/tqtinterface.SlackBuild | 119 +- {Apps => Libs}/kipi-plugins/README | 6 - Libs/kipi-plugins/kipi-plugins.SlackBuild | 127 ++ Libs/libkdcraw/libkdcraw.SlackBuild | 125 ++ Libs/libkexiv2/libkexiv2.SlackBuild | 121 ++ Libs/libkipi/libkipi.SlackBuild | 125 ++ Libs/libksquirrel/libksquirrel.SlackBuild | 118 ++ .../GraphicsMagick/GraphicsMagick.SlackBuild | 107 +- {Deps => Misc}/GraphicsMagick/slack-desc | 0 Misc/inkscape/README | 1 + Misc/inkscape/inkscape.SlackBuild | 151 ++ Misc/lxml/README | 8 + Misc/lxml/lxml.SlackBuild | 110 ++ Misc/mp4v2/mp4v2.SlackBuild | 83 + {Deps => Misc}/mp4v2/slack-desc | 0 Misc/potrace/README | 20 + Misc/potrace/potrace.SlackBuild | 110 ++ {Deps => Misc}/speex/slack-desc | 0 {Deps => Misc}/speex/speex.SlackBuild | 109 +- Misc/tidy-html5/README | 1 + Misc/tidy-html5/tidy-html5.SlackBuild | 119 ++ NOTES | 2 - README | 39 +- build-core.sh | 76 - build-deps.sh | 86 - Deps/mp4v2/mp4v2.SlackBuild => get-source.sh | 94 +- 135 files changed, 5741 insertions(+), 6562 deletions(-) delete mode 100644 Apps/amarok/slack-desc mode change 100644 => 100755 Apps/digikam/README delete mode 100644 Apps/digikam/digikam-R14.0.3.SlackBuild create mode 100755 Apps/digikam/digikam.SlackBuild create mode 100755 Apps/dolphin/README mode change 100644 => 100755 Apps/dolphin/slack-desc delete mode 100644 Apps/gtk-qt-engine/.d3lphinview rename Apps/gtk-qt-engine/{README.txt => README} (100%) mode change 100644 => 100755 mode change 100644 => 100755 Apps/gtk-qt-engine/slack-desc create mode 100755 Apps/gtk3-tqt-engine/gtk3-tqt-engine.SlackBuild create mode 100755 Apps/gwenview-i18n/gwenview-i18n.SlackBuild mode change 100644 => 100755 Apps/gwenview/README delete mode 100644 Apps/gwenview/gwenview-R14.0.3.SlackBuild delete mode 100644 Apps/gwenview/gwenview-i18n-R14.0.3.SlackBuild create mode 100755 Apps/gwenview/gwenview.SlackBuild create mode 100755 Apps/k3b-i18n/k3b-i18n.SlackBuild delete mode 100644 Apps/k3b/k3b-R14.0.3.SlackBuild delete mode 100644 Apps/k3b/k3b-i18n-R14.0.3.SlackBuild create mode 100755 Apps/k3b/k3b.SlackBuild create mode 100755 Apps/k9copy/README create mode 100755 Apps/k9copy/k9copy.SlackBuild mode change 100644 => 100755 Apps/kbookreader/slack-desc create mode 100755 Apps/kile/README create mode 100755 Apps/kile/kile.SlackBuild delete mode 100644 Apps/kipi-plugins/kipi-plugins-R14.0.3.SlackBuild delete mode 100644 Apps/kipi-plugins/libkdcraw-R14.0.3.SlackBuild delete mode 100644 Apps/kipi-plugins/libkexiv2-R14.0.3.SlackBuild delete mode 100644 Apps/kipi-plugins/libkipi-R14.0.3.SlackBuild delete mode 100644 Apps/knemo/knemo-R14.0.3.SlackBuild create mode 100755 Apps/knemo/knemo.SlackBuild create mode 100755 Apps/knights/README create mode 100755 Apps/knights/es.po create mode 100755 Apps/knights/knights.SlackBuild mode change 100644 => 100755 Apps/ksquirrel/README mode change 100644 => 100755 Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz delete mode 100644 Apps/ksquirrel/ksquirrel-R14.0.3.SlackBuild create mode 100755 Apps/ksquirrel/ksquirrel.SlackBuild delete mode 100644 Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild create mode 100755 Apps/potracegui/README create mode 100755 Apps/potracegui/potracegui.SlackBuild create mode 100755 Apps/potracegui/reformat-message.patch mode change 100644 => 100755 Apps/tde-style-qtcurve/slack-desc mode change 100644 => 100755 Apps/tdeio-locate/slack-desc create mode 100755 BUILD-TDE.sh delete mode 100644 Core/BUILD-ORDER delete mode 100644 Core/README.md rename Apps/tde-i18n/README.md => Core/tde-i18n/README (94%) mode change 100644 => 100755 rename {Apps => Core}/tde-i18n/tde-i18n.SlackBuild (51%) mode change 100644 => 100755 mode change 100644 => 100755 Core/tdeaddons/arkplugin-diffs-1 mode change 100644 => 100755 Core/tdeaddons/slack-desc mode change 100644 => 100755 Core/tdeartwork/slack-desc mode change 100644 => 100755 Core/tdebase/README mode change 100644 => 100755 Core/tdebase/config/Xsession mode change 100644 => 100755 Core/tdebase/config/backgroundrc mode change 100644 => 100755 Core/tdebase/doinst.sh mode change 100644 => 100755 Core/tdebase/profile.d/tde.csh mode change 100644 => 100755 Core/tdebase/profile.d/tde.sh mode change 100644 => 100755 Core/tdebase/slack-desc rename Apps/tdegames/tdegames-R14.0.3.SlackBuild => Core/tdegames/tdegames.SlackBuild (54%) mode change 100644 => 100755 mode change 100644 => 100755 Core/tdegraphics/slack-desc mode change 100644 => 100755 Core/tdelibs/slack-desc mode change 100644 => 100755 Core/tdemultimedia/slack-desc mode change 100644 => 100755 Core/tdenetwork/README mode change 100644 => 100755 Core/tdenetwork/slack-desc create mode 100755 Core/tdenetwork/tdenetwork.SlackBuild-cmake mode change 100644 => 100755 Core/tdepim/slack-desc mode change 100644 => 100755 Core/tdesdk/slack-desc mode change 100644 => 100755 Core/tdetoys/slack-desc mode change 100644 => 100755 Core/tdeutils/README mode change 100644 => 100755 Core/tdeutils/slack-desc mode change 100644 => 100755 Core/tdevelop/slack-desc delete mode 100644 Core/tdewebdev/slack-desc delete mode 100644 Deps/BUILD-ORDER mode change 100644 => 100755 Deps/arts/slack-desc mode change 100644 => 100755 Deps/dbus-1-tqt/slack-desc mode change 100644 => 100755 Deps/dbus-tqt/slack-desc mode change 100644 => 100755 Deps/libart_lgpl/README mode change 100644 => 100755 Deps/libart_lgpl/slack-desc mode change 100644 => 100755 Deps/tqca-tls/slack-desc mode change 100644 => 100755 Deps/tqt3/profile.d/tqt3.csh mode change 100644 => 100755 Deps/tqt3/profile.d/tqt3.sh mode change 100644 => 100755 Deps/tqt3/slack-desc mode change 100644 => 100755 Deps/tqtinterface/slack-desc rename {Apps => Libs}/kipi-plugins/README (54%) mode change 100644 => 100755 create mode 100755 Libs/kipi-plugins/kipi-plugins.SlackBuild create mode 100755 Libs/libkdcraw/libkdcraw.SlackBuild create mode 100755 Libs/libkexiv2/libkexiv2.SlackBuild create mode 100755 Libs/libkipi/libkipi.SlackBuild create mode 100755 Libs/libksquirrel/libksquirrel.SlackBuild rename {Deps => Misc}/GraphicsMagick/GraphicsMagick.SlackBuild (58%) rename {Deps => Misc}/GraphicsMagick/slack-desc (100%) mode change 100644 => 100755 create mode 100755 Misc/inkscape/README create mode 100755 Misc/inkscape/inkscape.SlackBuild create mode 100755 Misc/lxml/README create mode 100755 Misc/lxml/lxml.SlackBuild create mode 100755 Misc/mp4v2/mp4v2.SlackBuild rename {Deps => Misc}/mp4v2/slack-desc (100%) mode change 100644 => 100755 create mode 100755 Misc/potrace/README create mode 100755 Misc/potrace/potrace.SlackBuild rename {Deps => Misc}/speex/slack-desc (100%) mode change 100644 => 100755 rename {Deps => Misc}/speex/speex.SlackBuild (50%) create mode 100755 Misc/tidy-html5/README create mode 100755 Misc/tidy-html5/tidy-html5.SlackBuild delete mode 100644 NOTES mode change 100644 => 100755 README delete mode 100755 build-core.sh delete mode 100755 build-deps.sh rename Deps/mp4v2/mp4v2.SlackBuild => get-source.sh (62%) diff --git a/Apps/amarok/amarok.SlackBuild b/Apps/amarok/amarok.SlackBuild index 0e00749..162df93 100755 --- a/Apps/amarok/amarok.SlackBuild +++ b/Apps/amarok/amarok.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -27,135 +27,78 @@ VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_tde} -DOCS="AUTHORS ChangeLog* COPYING* README* TODO" - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +amarok: amarok (Amarok Music Player) +amarok: +amarok: Amarok music player for TDE +amarok: +amarok: +amarok: With language support for: +amarok: +amarok: en $(echo $langs) +amarok: +amarok: +amarok: Home: https://www.trinitydesktop.org/index.php +" > $PKG/install/slack-desc +} + +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications cd ${PRGNAM} +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am +# +langdoc="amarok";for Lang in $I18N;do [[ -d doc/$Lang ]] && langdoc="$langdoc $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS = $langdoc|" doc/Makefile.am + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DWITH_MP4V2="ON" \ - -DWITH_INOTIFY="ON" \ - -DWITH_KONQSIDEBAR="ON" \ - -DWITH_MTP="ON" \ - -DBUILD_ALL="ON" \ - -DWITH_XINE="ON" \ - -DWITH_YAUAP="OFF" \ - -DWITH_NJB="ON" \ - -Wno-dev \ - .. - make || exit 1 + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -176,17 +119,17 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/install -cat $SRCDIR/slack-desc > $PKG/install/slack-desc +SlackDesc cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} diff --git a/Apps/amarok/slack-desc b/Apps/amarok/slack-desc deleted file mode 100644 index 6f1a5ac..0000000 --- a/Apps/amarok/slack-desc +++ /dev/null @@ -1,20 +0,0 @@ -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -amarok: amarok (Amarok Music Player) -amarok: -amarok: Amarok music player for TDE -amarok: -amarok: -amarok: -amarok: -amarok: -amarok: -amarok: -amarok: Home: https://www.trinitydesktop.org/index.php - diff --git a/Apps/digikam/README b/Apps/digikam/README old mode 100644 new mode 100755 index 069a715..a8d526c --- a/Apps/digikam/README +++ b/Apps/digikam/README @@ -6,6 +6,4 @@ Showfoto is an image editor. If Digikam is to be built with Kipi Plugins support, build and install kipi-plugins first. -The default build is for [US] English only - additional language support can be set by the 'lang' variable. - -Added work-around for showfoto language support. \ No newline at end of file +Added work-around for showfoto language support. diff --git a/Apps/digikam/digikam-R14.0.3.SlackBuild b/Apps/digikam/digikam-R14.0.3.SlackBuild deleted file mode 100644 index b97cb48..0000000 --- a/Apps/digikam/digikam-R14.0.3.SlackBuild +++ /dev/null @@ -1,255 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=digikam -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -# -# [US] english is the default language, set additional language options to any of: -# ar bg br ca cs cy da de el en_GB es et fa fi fr gl he hu is it ja ka lt mk ms mt nb nds nl nn pa pl pt pt_BR ro ru rw sk sl sr sr@Latn sv ta th tr uk vi zh_CN zh_TW -# -# Example: lang="de es fr it" -lang="" -# -sed -i "s|SUBDIRS =.*$|SUBDIRS =. $lang|" po/Makefile.am -# only package help documents where they exist for the languages being included -langdocdk="digikam";for Lang in $lang;do [[ -d doc/$Lang"_digikam" ]] && langdocdk=$(echo $Lang"_digikam" $langdocdk);done -langdocsf="showfoto";for Lang in $lang;do [[ -d doc/$Lang"_showfoto" ]] && langdocsf=$(echo $Lang"_showfoto" $langdocsf);done -sed -i "s|SUBDIRS =.*$|SUBDIRS =. $langdocdk $langdocsf|" doc/Makefile.am -return 0 -} - - -# If building with additional language support, showfoto doesn't run using the language selected, -# because showfoto.mo files are not being built. This function is added into the build at the packaging -# stage as a work-around to provide the translations for showfoto .. -link_sfmo() -{ -if [ -d usr/share/locale ] -then -for DIR in usr/share/locale/*/LC_MESSAGES/ -do -(cd $DIR -ln -s digikam.mo showfoto.mo) -done -fi -return 0 -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -digikam: Digikam is a digital photo management application for the TDE desktop. -digikam: -digikam: Showfoto is a photo viewer and editor. -digikam: -digikam: With language support for: -digikam: -digikam: en $(echo $lang) -digikam: -digikam: -digikam: -digikam: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true - -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -./configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -(cd ${PRGNAM};cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION) || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -link_sfmo -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/digikam/digikam.SlackBuild b/Apps/digikam/digikam.SlackBuild new file mode 100755 index 0000000..0a1cf09 --- /dev/null +++ b/Apps/digikam/digikam.SlackBuild @@ -0,0 +1,137 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=digikam +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +digikam: Digikam is a digital photo management application for the TDE desktop. +digikam: +digikam: Showfoto is a photo viewer and editor. +digikam: +digikam: With language support for: +digikam: +digikam: en $(echo $langs) +digikam: +digikam: +digikam: +digikam: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS =.$langs|" po/Makefile.am +# only package help documents where they exist for the languages being included +langdocdk="digikam";for Lang in $langs;do [[ -d doc/$Lang"_digikam" ]] && langdocdk=$(echo $Lang"_digikam" $langdocdk);done +langdocsf="showfoto";for Lang in $langs;do [[ -d doc/$Lang"_showfoto" ]] && langdocsf=$(echo $Lang"_showfoto" $langdocsf);done +sed -i "s|SUBDIRS =.*$|SUBDIRS =. $langdocdk $langdocsf|" doc/Makefile.am + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +# If building with additional language support, showfoto doesn't run using the language selected +# because showfoto.mo files are not being built. This is added into the build at this packaging +# stage as a work-around to provide the translations for showfoto .. +if [ -d $PKG${INSTALL_TDE}/share/locale ] +then +for DIR in $PKG${INSTALL_TDE}/share/locale/*/LC_MESSAGES/ +do +(cd $DIR +ln -s digikam.mo showfoto.mo) +done +fi +cd $PKG + +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/dolphin/README b/Apps/dolphin/README new file mode 100755 index 0000000..1532642 --- /dev/null +++ b/Apps/dolphin/README @@ -0,0 +1 @@ +Built with automake/configure because the cmake build doesn't include documentation. diff --git a/Apps/dolphin/dolphin.SlackBuild b/Apps/dolphin/dolphin.SlackBuild index 05439d2..6edeccd 100755 --- a/Apps/dolphin/dolphin.SlackBuild +++ b/Apps/dolphin/dolphin.SlackBuild @@ -27,125 +27,79 @@ VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_tde} -DOCS="AUTHORS ChangeLog* COPYING* TODO" - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +dolphin: dolphin (Dolphin file manager for TDE) +dolphin: +dolphin: Dolphin file manager for TDE +dolphin: +dolphin: +dolphin: With language support for: +dolphin: +dolphin: en $(echo $langs) +dolphin: +dolphin: +dolphin: Home: https://www.trinitydesktop.org/index.php +" > $PKG/install/slack-desc +} + +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications cd ${PRGNAM} +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done +sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am +langs=$(echo $langs | sed 's|.po||g') +# +langdoc="en";for Lang in $I18N;do [[ -d doc/$Lang ]] && langdoc="$langdoc $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS = $langdoc|" doc/Makefile.am + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - .. - make || exit 1 + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -166,17 +120,17 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/install -cat $SRCDIR/slack-desc > $PKG/install/slack-desc +SlackDesc cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} @@ -186,4 +140,5 @@ cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt # Restore the original umask: -umask ${_UMASK_} +umask ${_UMASK_} + diff --git a/Apps/dolphin/slack-desc b/Apps/dolphin/slack-desc old mode 100644 new mode 100755 diff --git a/Apps/gtk-qt-engine/.d3lphinview b/Apps/gtk-qt-engine/.d3lphinview deleted file mode 100644 index df0655a..0000000 --- a/Apps/gtk-qt-engine/.d3lphinview +++ /dev/null @@ -1 +0,0 @@ -V0100199912312359590A0 \ No newline at end of file diff --git a/Apps/gtk-qt-engine/README.txt b/Apps/gtk-qt-engine/README old mode 100644 new mode 100755 similarity index 100% rename from Apps/gtk-qt-engine/README.txt rename to Apps/gtk-qt-engine/README diff --git a/Apps/gtk-qt-engine/gtk-qt-engine.SlackBuild b/Apps/gtk-qt-engine/gtk-qt-engine.SlackBuild index b72caad..3c570ee 100755 --- a/Apps/gtk-qt-engine/gtk-qt-engine.SlackBuild +++ b/Apps/gtk-qt-engine/gtk-qt-engine.SlackBuild @@ -29,105 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING NEWS README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications cd ${PRGNAM} @@ -143,12 +50,13 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSYSCONF_INSTALL_DIR=/etc \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -Wno-dev \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -162,11 +70,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Apps/gtk-qt-engine/slack-desc b/Apps/gtk-qt-engine/slack-desc old mode 100644 new mode 100755 diff --git a/Apps/gtk3-tqt-engine/gtk3-tqt-engine.SlackBuild b/Apps/gtk3-tqt-engine/gtk3-tqt-engine.SlackBuild new file mode 100755 index 0000000..5c77dca --- /dev/null +++ b/Apps/gtk3-tqt-engine/gtk3-tqt-engine.SlackBuild @@ -0,0 +1,127 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=gtk3-tqt-engine +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: +$PRGNAM: Use your TDE style in gtk3 applications. +$PRGNAM: +$PRGNAM: +$PRGNAM: Open TDE control center|Appearance & Themes|GTK Styles and Fonts +$PRGNAM: and select 'Use my TDE style in GTK3 applications'. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 + +# can't figure out why installation of theme engines is to usr/lib and not usr/lib$LIBDIRSUFFIX +# where in the source/build is this set up? +mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX +sed -i "s|lib/gtk-3.0|lib$LIBDIRSUFFIX/gtk-3.0|" $PKG/usr/lib$LIBDIRSUFFIX/gtk-3.0/3.0.0/theming-engines/libtdegtk.la + +# Add this to the doinst.sh: +mkdir -p $PKG/install +cat <> $PKG/install/doinst.sh +# Update the desktop database: +if [ -x usr/bin/update-desktop-database ]; then + chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1 +fi + +EOINS + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/gwenview-i18n/gwenview-i18n.SlackBuild b/Apps/gwenview-i18n/gwenview-i18n.SlackBuild new file mode 100755 index 0000000..a23e550 --- /dev/null +++ b/Apps/gwenview-i18n/gwenview-i18n.SlackBuild @@ -0,0 +1,141 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=gwenview-i18n +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +gwenview-i18n: Internationalization files for gwenview. +gwenview-i18n: +gwenview-i18n: For languages: +gwenview-i18n: +gwenview-i18n: $(echo $langs) +gwenview-i18n: +gwenview-i18n: +gwenview-i18n: +gwenview-i18n: +gwenview-i18n: +gwenview-i18n: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +# Add missing files for Spanish TDE handbook docs +if [[ $I18N == *es* ]] +then +sed -i 's|SUBDIRS= messages|SUBDIRS= messages doc|' es/Makefile.am +echo "KDE_LANG = es +KDE_DOCS=gwenview +" > es/doc/Makefile.am +# use the German index.docbook as a template +cp de/doc/index.docbook es/doc/index.docbook +# these index.docbook 'translations' have been made from the gwenview [US] English original, +# the other 'es' *.docbook files are the original translations in the source code +# any corrections from a Spanish speaker will be welcome +sed -i -e 's|German|Spanish|' -e 's|Das Handbuch zu Gwenview|Manual del usuario Gwenview|' -e 's|Deutsche Übersetzung|Traducción Española|' -e 's|ist ein Bildbetrachter für &kde;|es un visor de imágenes para TDE|' -e '85s|Bild|imagen|' -e '87s|Betrachter|visionador|' -e 's|Künstler|artista|' -e 's|Photo|foto|' -e '93s|Bild|dibujo|' -e 's|Tipps|Consejos|' -e 's|Thomas||' -e 's|Reitelbach||' -e 's|tr@erdfunkstelle.de||' es/doc/index.docbook +fi + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d $Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" Makefile.am + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +ARCH="noarch" +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/gwenview/README b/Apps/gwenview/README old mode 100644 new mode 100755 index e44f61a..e528d3e --- a/Apps/gwenview/README +++ b/Apps/gwenview/README @@ -1,6 +1,3 @@ If Gwenview is to be built with Kipi Plugins support, build and install kipi-plugins first. -gwenview-i18n -------------- -Set the 'lang' variable to the language(s) required. \ No newline at end of file diff --git a/Apps/gwenview/gwenview-R14.0.3.SlackBuild b/Apps/gwenview/gwenview-R14.0.3.SlackBuild deleted file mode 100644 index e965fd3..0000000 --- a/Apps/gwenview/gwenview-R14.0.3.SlackBuild +++ /dev/null @@ -1,223 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=gwenview -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -gwenview: gwenview is an image viewer for TDE. -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -gwenview: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/gwenview/gwenview-i18n-R14.0.3.SlackBuild b/Apps/gwenview/gwenview-i18n-R14.0.3.SlackBuild deleted file mode 100644 index db9ed09..0000000 --- a/Apps/gwenview/gwenview-i18n-R14.0.3.SlackBuild +++ /dev/null @@ -1,260 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=gwenview-i18n -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - - -# set language options to any of: -# ar az bg br ca cs cy da de el en_GB es et fa fi fo fr gl he hi hu is it ja ka ko lt ms nb nds nl nso pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta th tr uk ven vi xh zh_CN zh_TW zu -# -# Example: lang="de es fr it" -lang="" -# -LangOptions() -{ -sed -i "s|TOPSUBDIRS =.*$|TOPSUBDIRS = $lang|" Makefile -return -} - - -BuildEsDocs() -{ -# Add missing files for Spanish TDE handbook docs -if [[ $lang == *es* ]] -then -sed -i 's|SUBDIRS= messages|SUBDIRS= messages doc|' es/Makefile.am -echo "KDE_LANG = es -KDE_DOCS=gwenview -" > es/doc/Makefile.am -# use the German index.docbook as a template -cp de/doc/index.docbook es/doc/index.docbook -# these index.docbook 'translations' have been made by a non-Spanish-speaker from the gwenview [US] English original, -# the other 'es' *.docbook files are the original translations in the source code -sed -i -e 's|German|Spanish|' -e 's|Das Handbuch zu Gwenview|Manual del usuario Gwenview|' -e 's|Deutsche Übersetzung|Traducción Española|' -e 's|ist ein Bildbetrachter für &kde;|es un visor de imágenes para TDE|' -e '85s|Bild|imagen|' -e '87s|Betrachter|visionador|' -e 's|Künstler|artista|' -e 's|Photo|foto|' -e '93s|Bild|dibujo|' -e 's|Tipps|Consejos|' -e 's|Thomas||' -e 's|Reitelbach||' -e 's|tr@erdfunkstelle.de||' es/doc/index.docbook -fi -return -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -gwenview-i18n: Internationalization files for gwenview: -gwenview-i18n: -gwenview-i18n: $(echo $lang) -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -gwenview-i18n: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} -BuildEsDocs - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - -LangOptions - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - -ARCH="noarch" -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/gwenview/gwenview.SlackBuild b/Apps/gwenview/gwenview.SlackBuild new file mode 100755 index 0000000..8c65b62 --- /dev/null +++ b/Apps/gwenview/gwenview.SlackBuild @@ -0,0 +1,118 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=gwenview +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +gwenview: gwenview is an image viewer for TDE. +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +gwenview: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/k3b-i18n/k3b-i18n.SlackBuild b/Apps/k3b-i18n/k3b-i18n.SlackBuild new file mode 100755 index 0000000..c0f24c0 --- /dev/null +++ b/Apps/k3b-i18n/k3b-i18n.SlackBuild @@ -0,0 +1,123 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=k3b-i18n +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +k3b-i18n: k3b-i18n (internationalization files for the CD Creator). +k3b-i18n: +k3b-i18n: For languages: +k3b-i18n: +k3b-i18n: $(echo $langs) +k3b-i18n: +k3b-i18n: +k3b-i18n: +k3b-i18n: +k3b-i18n: +k3b-i18n: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d $Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" Makefile.am + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +ARCH="noarch" +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/k3b/k3b-R14.0.3.SlackBuild b/Apps/k3b/k3b-R14.0.3.SlackBuild deleted file mode 100644 index a3b1c63..0000000 --- a/Apps/k3b/k3b-R14.0.3.SlackBuild +++ /dev/null @@ -1,225 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=k3b -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out/uncomment as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -# change item description in Settings menu [but messes up non-english translation ..] -#sed -i 's|Setup System Permissions...|Set up permissions (K3bSetup)...|' src/k3b.cpp -return -} - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -k3b: k3b (The CD Creator, TDE R14.0.3 version) -k3b: -k3b: K3b makes writing cds under Linux easy. It has an easy to use -k3b: interface and supports CD burning (including on-the-fly), copying, -k3b: erasing, ripping, and more. -k3b: -k3b: K3b was written by Sebastian Trueg, Thomas Froescher, -k3b: Christian Kvasny, and Klaus-Dieter Krannich. -k3b: -k3b: For more information, visit: http://www.k3b.org -k3b: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - -DOCS=$(ls AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm 2>/dev/null) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/k3b/k3b-i18n-R14.0.3.SlackBuild b/Apps/k3b/k3b-i18n-R14.0.3.SlackBuild deleted file mode 100644 index 8bb2e95..0000000 --- a/Apps/k3b/k3b-i18n-R14.0.3.SlackBuild +++ /dev/null @@ -1,235 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=k3b-i18n -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - -LangOptions() -{ -# set language options to any of: -# af ar bg br bs ca cs cy da de el en_GB es et eu fa fi fr ga gl he hi hu is it ja ka km lt mk ms nb nds ne nl nn pa pl pt pt_BR ru rw se sk sr sr@Latn sv ta tr uk uz uz@cyrillic zh_CN zh_TW -# -CHOICE="de es fr it" -# -sed -i "s|TOPSUBDIRS =.*$|TOPSUBDIRS = $CHOICE|" Makefile -return -} - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -k3b-i18n: k3b-i18n (internationalization files for the CD Creator) -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -k3b-i18n: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - -DOCS=$(ls AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm 2>/dev/null) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - -LangOptions - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/k3b/k3b.SlackBuild b/Apps/k3b/k3b.SlackBuild new file mode 100755 index 0000000..0c2877b --- /dev/null +++ b/Apps/k3b/k3b.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=k3b +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +k3b: k3b (The CD Creator, TDE R14.0.3 version) +k3b: +k3b: K3b makes writing cds under Linux easy. It has an easy to use +k3b: interface and supports CD burning (including on-the-fly), copying, +k3b: erasing, ripping, and more. +k3b: +k3b: K3b was written by Sebastian Trueg, Thomas Froescher, +k3b: Christian Kvasny, and Klaus-Dieter Krannich. +k3b: +k3b: For more information, visit: http://www.k3b.org +k3b: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +DOCS=$(ls AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm 2>/dev/null) || true + +# change item description in Settings menu [but messes up non-english translations ..] +#sed -i 's|Setup System Permissions...|Set up permissions (K3bSetup)...|' src/k3b.cpp + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/k9copy/README b/Apps/k9copy/README new file mode 100755 index 0000000..af85ed9 --- /dev/null +++ b/Apps/k9copy/README @@ -0,0 +1,5 @@ +Needs k3b. + +This SB is configured with + --enable-k3bdevices do not activate hal/dbus support (use k3bdevice instead) + diff --git a/Apps/k9copy/k9copy.SlackBuild b/Apps/k9copy/k9copy.SlackBuild new file mode 100755 index 0000000..e04eefb --- /dev/null +++ b/Apps/k9copy/k9copy.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=k9copy +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: +$PRGNAM: k9copy is an easy to use and powerful DVD backup utility. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: With language support for: +$PRGNAM: +$PRGNAM: en $(echo $langs) +$PRGNAM: +$PRGNAM: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo -e "\nExtracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done +sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am +langs=$(echo $langs | sed 's|.po||g') + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure \ + --enable-k3bdevices + + + make ${NUMJOBS:-} || exit 1 + make DESTDIR=$PKG install || exit 1 + + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ../;cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/kbookreader/kbookreader.SlackBuild b/Apps/kbookreader/kbookreader.SlackBuild index 7fc9e68..e79c024 100755 --- a/Apps/kbookreader/kbookreader.SlackBuild +++ b/Apps/kbookreader/kbookreader.SlackBuild @@ -25,110 +25,16 @@ PRGNAM=kbookreader VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING* FAQ HOW.TO.BUILD TODO TRINITY.RELEASE" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications cd ${PRGNAM} @@ -145,9 +51,9 @@ LDFLAGS="$SLKLDFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ + --prefix=${INSTALL_TDE} \ + --libdir=${INSTALL_TDE}/lib${LIBDIRSUFFIX} \ + --docdir=${INSTALL_TDE}/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux make $NUMJOBS || exit 1 @@ -175,11 +81,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -188,7 +94,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 cd - diff --git a/Apps/kbookreader/slack-desc b/Apps/kbookreader/slack-desc old mode 100644 new mode 100755 index 72e2eef..b350b4d --- a/Apps/kbookreader/slack-desc +++ b/Apps/kbookreader/slack-desc @@ -5,7 +5,7 @@ # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler------------------------------------------------------| + |-----handy-ruler------------------------------------------------------| kbookreader: kbookreader (book reader) kbookreader: kbookreader: kbookreader diff --git a/Apps/kile/README b/Apps/kile/README new file mode 100755 index 0000000..180f6b8 --- /dev/null +++ b/Apps/kile/README @@ -0,0 +1,30 @@ +Type `kile` and enjoy the power of LaTeX together with the joy of using Kile :) + +Using Kile + +To use Kile you (obviously) need some external programs. +The following list is divided into basic, advanced and additional usage. + +Basic: + +- TeTeX 2.0/3.0 or TeXLive 2005/2007 (Including "AMS"-Packages and the documentation) +- KDVI + +Advanced: + +- KPDF, KGhostView (Viewing PS and PDF) +- Acroread (Viewing PDF) +- Imagemagick, DVIPNG 1.7 (Bottom bar preview) + +By default there are also tools for the following programs defined: + +- Tar/zip/gzip/bzip2 (Archive) +- DBlatex (Docbook to LaTeX) +- Metapost and Asymptote +- Latex2html (LaTeX to Web) +- Tex4ht (LaTeX to Web) +- Lilypond (Music Typesetting) +- Konqueror/Mozilla/Firefox (Viewing HTML) +- Kbibtex, KBib, JabRef, pybliographer, gbib (View Bibtex files) + + diff --git a/Apps/kile/kile.SlackBuild b/Apps/kile/kile.SlackBuild new file mode 100755 index 0000000..d9b0a27 --- /dev/null +++ b/Apps/kile/kile.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=kile +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: +$PRGNAM: Kile is a TEX and LATEX source editor and shell +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: With language support for: +$PRGNAM: +$PRGNAM: en $(echo $langs) +$PRGNAM: +$PRGNAM: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo -e "\nExtracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -e translations/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make ${NUMJOBS:-} || exit 1 + make DESTDIR=$PKG install || exit 1 + + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ../;cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/kipi-plugins/kipi-plugins-R14.0.3.SlackBuild b/Apps/kipi-plugins/kipi-plugins-R14.0.3.SlackBuild deleted file mode 100644 index eee2ba8..0000000 --- a/Apps/kipi-plugins/kipi-plugins-R14.0.3.SlackBuild +++ /dev/null @@ -1,243 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=kipi-plugins -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - - -LangOptions() -{ -# [US] english is the default language, set additional language options to any of: -# ar be br ca cs cy da de el en_GB es et fi fr ga gl hu is it ja lt ms mt nb nds nl nn pa pl pt pt_BR ru rw sk sr sr@Latn sv ta th tr uk zh_CN -# -# Example: lang="de es fr it" -lang="" -# -sed -i "494s|SUBDIRS =.*$|SUBDIRS =. $lang|" po/Makefile -langdoc="kipi-plugins";for Lang in $lang;do [[ -d doc/$Lang"_kipi-plugins" ]] && langdoc=$(echo $Lang"_kipi-plugins" $langdoc);done -sed -i "496s|SUBDIRS =.*$|SUBDIRS =. $langdoc|" doc/Makefile -return 0 -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -kipi-plugins: Kipi Plugins are additional functions for the TDE Images Management -kipi-plugins: Host Programs (digiKam, ksquirrel and gwenview). They can add -kipi-plugins: extra menus and shortcuts, and extend the host program features. -kipi-plugins: You can install as many or as few as you like, from within the host -kipi-plugins: programs. -kipi-plugins: -kipi-plugins: With language support for: -kipi-plugins: -kipi-plugins: en $(echo $lang) -kipi-plugins: -kipi-plugins: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/libraries/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd libraries -cd ${PRGNAM} - - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - -LangOptions - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/kipi-plugins/libkdcraw-R14.0.3.SlackBuild b/Apps/kipi-plugins/libkdcraw-R14.0.3.SlackBuild deleted file mode 100644 index 2e9ea77..0000000 --- a/Apps/kipi-plugins/libkdcraw-R14.0.3.SlackBuild +++ /dev/null @@ -1,241 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=libkdcraw -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - - -LangOptions() -{ -# [US] english is the default language, set additional language options to any of: -# ca da de el es et is it ja ms nds nl pa pt pt_BR sk sr sr@Latn sv th uk -# -# Example: lang="de es it" -lang="" -# -sed -i "475s|SUBDIRS =.*$|SUBDIRS =. $lang|" po/Makefile -return -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -libkdcraw: Libkdcraw (dcraw Library Wrapper) -libkdcraw: -libkdcraw: Libkdcraw is a C++ interface around dcraw binary program used to -libkdcraw: decode RAW picture files. The library documentation is available -libkdcraw: on header files. This library is used by kipi-plugins, digiKam -libkdcraw: and other kipi host programs. -libkdcraw: -libkdcraw: With language support for: -libkdcraw: -libkdcraw: en $(echo $lang) -libkdcraw: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/libraries/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd libraries -cd ${PRGNAM} - - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - -LangOptions - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/kipi-plugins/libkexiv2-R14.0.3.SlackBuild b/Apps/kipi-plugins/libkexiv2-R14.0.3.SlackBuild deleted file mode 100644 index 7ed6d47..0000000 --- a/Apps/kipi-plugins/libkexiv2-R14.0.3.SlackBuild +++ /dev/null @@ -1,227 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=libkexiv2 -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -libkexiv2: Libkexiv2 (Exiv2 Library Wrapper) -libkexiv2: -libkexiv2: Libkexiv2 is a wrapper around Exiv2 library to manipulate picture -libkexiv2: metadata. This library is used by kipi-plugins, digiKam and other -libkexiv2: kipi host programs. The library documentation is available in the -libkexiv2: kexiv2.h header file. -libkexiv2: -libkexiv2: Homepage: http://www.kipi-plugins.org/ -libkexiv2: -libkexiv2: -libkexiv2: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/libraries/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd libraries -cd ${PRGNAM} - - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/kipi-plugins/libkipi-R14.0.3.SlackBuild b/Apps/kipi-plugins/libkipi-R14.0.3.SlackBuild deleted file mode 100644 index fead184..0000000 --- a/Apps/kipi-plugins/libkipi-R14.0.3.SlackBuild +++ /dev/null @@ -1,241 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=libkipi -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -return -} - - -LangOptions() -{ -# [US] english is the default language, set additional language options to any of: -# ar br ca cs cy da de el en_GB es et fi fr ga gl is it ja lt mt nb nl pa pl pt pt_BR ru rw sk sl sr sr@Latn ta tr uk zh_CN -# -# Example: lang="de es fr it" -lang="" -# -sed -i "471s|SUBDIRS =.*$|SUBDIRS =. $lang|" po/Makefile -return -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -libkipi: libKipi (KDE Image Plugin Interface) for TDE -libkipi: -libkipi: Kipi is an effort to develop a common plugin structure for digiKam, -libkipi: and other kipi host programs. Its aim is to share image plugins -libkipi: among graphic applications. Kipi is based on the old digiKam plugins -libkipi: implementation and is maintained by the digiKam team. -libkipi: -libkipi: With language support for: -libkipi: -libkipi: en $(echo $lang) -libkipi: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/libraries/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd libraries -cd ${PRGNAM} - - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - -LangOptions - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/knemo/knemo-R14.0.3.SlackBuild b/Apps/knemo/knemo-R14.0.3.SlackBuild deleted file mode 100644 index 76b938a..0000000 --- a/Apps/knemo/knemo-R14.0.3.SlackBuild +++ /dev/null @@ -1,237 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=knemo -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-2} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -# rename knemo icons to avoid conflict with those in tdeartwork -rename network_ knemo_network_ src/knemod/pics/*png -sed -i -e 's|network_|knemo_network_|g' src/{knemod/interfaceicon,kcm/configdialog}.cpp -# Show 'Gateway' not 'Default Gateway' in Tooltip message box when cursor hovers over Panel icon -sed -i 's|Default Gateway" ), LINK_QUALITY|Gateway" ), GATEWAY|' src/knemod/interfacetooltip.cpp -# widen text area in Tooltips box to avoid text wrapping -sed -i 's|||g' src/knemod/interfacetooltip.cpp -# set language to .. options are any of -# SUBDIRS= ar bg br cs cy da de el en_GB es et fr ga gl hu it ja ka lt nl pl pt pt_BR ru rw sk sr sr@Latn sv tr -# needs msgfmt - no error message given - uses bash built-in ':' otherwise -sed -i 's|SUBDIRS=.*$|SUBDIRS= de en_GB|' translations/Makefile.am -return -} - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -knemo: knemo (The TDE Network Monitor) -knemo: -knemo: KNemo offers a network monitor similar to the one found in that other -knemo: operating system. Supports Ethernet (including wireless) and PPP -knemo: connections, showing both incoming and outgoing traffic. -knemo: For every network interface it displays an icon in the Panel. -knemo: -knemo: -knemo: IMPORTANT: KNemo has to be started using -knemo: Trinity Control Center|Internet & Network|Network Monitor. -knemo: -" > $PKG/install/slack-desc -} - - -DOCS="AUTHORS ChangeLog* COPYING* README* TODO" - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - -Options - - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -../configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/knemo/knemo.SlackBuild b/Apps/knemo/knemo.SlackBuild new file mode 100755 index 0000000..a404b71 --- /dev/null +++ b/Apps/knemo/knemo.SlackBuild @@ -0,0 +1,130 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=knemo +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +knemo: knemo (The TDE Network Monitor) offers a network monitor similar to +knemo: the one found in that other operating system. Supports Ethernet +knemo: (including wireless) and PPP connections, showing both incoming and +knemo: outgoing traffic. For every network interface it displays an icon in +knemo: the Panel. +knemo: +knemo: With language support for: +knemo: en $(echo $langs) +knemo: +knemo: IMPORTANT: KNemo has to be started using +knemo: Trinity Control Center|Internet & Network|Network Monitor. +" > $PKG/install/slack-desc +} + + +DOCS="AUTHORS ChangeLog* COPYING* README* TODO" + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +# rename knemo icons to avoid conflict with those in tdeartwork +rename network_ knemo_network_ src/knemod/pics/*png +sed -i -e 's|network_|knemo_network_|g' src/{knemod/interfaceicon,kcm/configdialog}.cpp +# widen text area in Tooltips box to avoid text wrapping +sed -i 's|||g' src/knemod/interfacetooltip.cpp +# patch +sed -i 's|Default Gateway" ), LINK_QUALITY|Default Gateway" ), GATEWAY|' src/knemod/interfacetooltip.cpp +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d translations/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/knights/README b/Apps/knights/README new file mode 100755 index 0000000..b93d468 --- /dev/null +++ b/Apps/knights/README @@ -0,0 +1,11 @@ +There is a Spanish language file in the source, but it has no translations in it .. +the included es.po file is a collaboration between Google translate, +my Spanish-English-Spanish dictionary, and various other sources. + +Any involvement from a Spanish speaker to check and correct will be welcome. +Kbabel is not necessary, it will display in a text editor just fine. + + +Tested with gnuchess-6.2.2, stockfish-7-linux, and komodo-7, in UCI mode. + + diff --git a/Apps/knights/es.po b/Apps/knights/es.po new file mode 100755 index 0000000..93a527d --- /dev/null +++ b/Apps/knights/es.po @@ -0,0 +1,1546 @@ +# translation of knights.po to Spanish +# Copyright (C) 2016 Free Software Foundation, Inc. +# Copyright 2016 github.com/Thorn-Inurcide/tde-slackbuilds +# +msgid "" +msgstr "" +"Project-Id-Version: knights\n" +"POT-Creation-Date: 2003-03-02 12:02-0600\n" +"PO-Revision-Date: 2016-05-02 14:59+0100\n" +"Last-Translator: \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + + +msgid "Name: %1 Rating: %2 Match Type: %3 %4 Base Time: %5 Increment: %6" +msgstr "Nombre: %1 Clasificación: %2 Tipo de partido: %3 %4 Tiempo Base: %5 Incremento: %6" + +msgid "min." +msgstr "min." + +msgid "moves" +msgstr "movimientos" + +msgid "sec." +msgstr "seg." + +msgid "%1 %2 vs. %3 %4\nin a %5 match." +msgstr "%1 %2 vs. %3 %4\nen un partido %5." + +msgid "%1 - Knights" +msgstr "%1 - Knights" + +msgid "%1 Console" +msgstr "%1 de consola" + +msgid "%1 did not pass it's copy protection check." +msgstr "%1 no pasó la verificación de protección de copia." + +msgid "%1 matches found." +msgstr "%1 se han encontrado partidos." + +msgid "%1 suggests this move:\n%2" +msgstr "%1 sugiere este movimiento:\n%2" + +msgid "%1 tells you:\n%2" +msgstr "%1 le dice:\n%2" + +msgid "%1 vs. %2" +msgstr "%1 vs. %2" + +msgid "&Accept Draw" +msgstr "&Aceptar Tablas" + +msgid "&Add..." +msgstr "&Añadir..." + +msgid "&Call Flag" +msgstr "&Llame a la bandera" + +msgid "&Close Match" +msgstr "&Cerrar Partido" + +msgid "&Configure Knights..." +msgstr "&Configurar Knights..." + +msgid "&Copy" +msgstr "&Copia" + +msgid "&Delete..." +msgstr "&Borrar..." + +msgid "&Draw" +msgstr "&Tablas" + +msgid "&File" +msgstr "&Archivo" + +msgid "&Find" +msgstr "&Encontrar" + +msgid "&Flip View" +msgstr "&Invertir el tablero" + +msgid "&Help" +msgstr "A&yuda" + +msgid "&Hint" +msgstr "&Insinuación" + +msgid "&Ignore Draw" +msgstr "&Ignorar Tablas" + +msgid "&Install Themes" +msgstr "&Instalar Temas" + +msgid "&Load Match..." +msgstr "&Partido de carga..." + +msgid "&Match" +msgstr "&Partido" + +msgid "&Modify..." +msgstr "&Modificar..." + +msgid "&New Match..." +msgstr "&Nuevo Partido..." + +msgid "&Offer Draw" +msgstr "&Ofrecer Tablas" + +msgid "&Ponder" +msgstr "&Reflexionar" + +msgid "&Print" +msgstr "&Impresión" + +msgid "&Print Notation..." +msgstr "&Impresión de notación..." + +msgid "&Quit" +msgstr "&Dejar" + +msgid "&Reject Draw" +msgstr "&Rechazar Tablas" + +msgid "&Retract Move" +msgstr "&Retraer Movimiento" + +msgid "&Save Match" +msgstr "&Guardar Partido" + +msgid "&Settings" +msgstr "Co&nfiguración" + +msgid "&Tutorials" +msgstr "&Tutoriales" + +msgid "50 moves rule, draw match" +msgstr "50 movimientos regla, partido tablas" + +msgid "A .pgn file to be loaded." +msgstr "Un archivo .pgn se va a cargar." + +msgid "Abort logging into the server" +msgstr "Abortar sesión en el servidor" + +msgid "Accept" +msgstr "Aceptar" + +msgid "Accept This Match" +msgstr "Este partido de aceptar" + +msgid "Add to Friends" +msgstr "Añadir a amigos" + +msgid "Aimed against..." +msgstr "Dirigido contra..." + +msgid "Always Promote to Queen" +msgstr "Siempre Promover a la reina" + +msgid "Animate Moves" +msgstr "Se movimientos la animación" + +msgid "Append to Save File" +msgstr "Anexar a guardar archivo" + +msgid "Append to Save File:" +msgstr "Anexar a guardar archivo:" + +msgid "Ask" +msgstr "Pedir" + +msgid "Assess..." +msgstr "Evaluar..." + +msgid "Audio" +msgstr "Audio" + +msgid "Audio Themes" +msgstr "Temas de audio" + +msgid "Australian FICS" +msgstr "FICS australiana" + +msgid "Automatic Preview" +msgstr "Vista previa automática" + +msgid "Automatically Close Previous ICS Match" +msgstr "Cerrar automáticamente Partido ICS Anterior" + +msgid "Backwards pawn" +msgstr "Peón retrasado" + +msgid "Base Time" +msgstr "Base de tiempo" + +msgid "Base Time:" +msgstr "Base de tiempo:" + +msgid "Begin a Tutorial" +msgstr "Iniciar un Tutorial" + +msgid "Better Move" +msgstr "Mejor Mover" + +msgid "Bishops of opposite color" +msgstr "Alfiles de color opuesto" + +msgid "Bishops of same color" +msgstr "Alfiles del mismo color" + +msgid "Black" +msgstr "Negro" + +msgid "Black Book Engine Problem" +msgstr "El libro negro de problema del motor" + +msgid "Black Engine Problem" +msgstr "Problema del motor de negro" + +msgid "Black has a crushing advantage ( White should resign )" +msgstr "Negro tiene una ventaja de trituración (blanco debería renunciar)" + +msgid "Black has a decisive advantage" +msgstr "Negro tiene una ventaja decisiva" + +msgid "Black has a decisive center control advantage" +msgstr "Negro tiene una decisiva ventaja del control central" + +msgid "Black has a decisive kingside control advantage" +msgstr "Negro tiene una ventaja decisiva de control flanco de rey" + +msgid "Black has a decisive queenside control advantage" +msgstr "Negro tiene una ventaja decisiva de control flanco de dama" + +msgid "Black has a decisive space advantage" +msgstr "Negro tiene una ventaja decisiva espacio" + +msgid "Black has a decisive time ( development ) advantage" +msgstr "Negro tiene un tiempo decisiva ventaja (desarrollo)" + +msgid "Black has a lasting initiative" +msgstr "Negro tiene una iniciativa duradera" + +msgid "Black has a moderate advantage" +msgstr "Negro tiene una ventaja moderada" + +msgid "Black has a moderate center control advantage" +msgstr "Negro tiene una ventaja de control de centro moderado" + +msgid "Black has a moderate kingside control advantage" +msgstr "Negro tiene una ventaja de control flanco de rey moderada" + +msgid "Black has a moderate queenside control advantage" +msgstr "Negro tiene una ventaja de control de dama moderada" + +msgid "Black has a moderate space advantage" +msgstr "Negro tiene una ventaja de espacio moderada" + +msgid "Black has a moderate time ( development ) advantage" +msgstr "Negro tiene un tiempo moderado ventaja (desarrollo)" + +msgid "Black has a moderately strong pawn structure" +msgstr "Negro tiene una estructura de peones moderadamente fuerte" + +msgid "Black has a moderately weak pawn structure" +msgstr "Negro tiene una estructura de peones moderadamente débil" + +msgid "Black has a pair of Bishops" +msgstr "Negro tiene un par de Alfiles" + +msgid "Black has a poorly placed king" +msgstr "Negro tiene un rey mal colocada" + +msgid "Black has a poorly protected king" +msgstr "Negro tiene un rey mal protegido" + +msgid "Black has a slight advantage" +msgstr "Negro tiene una ligera ventaja" + +msgid "Black has a slight center control advantage" +msgstr "Negro tiene una ligera ventaja del control central" + +msgid "Black has a slight kingside control advantage" +msgstr "Negro tiene una ligera ventaja de control flanco de rey" + +msgid "Black has a slight queenside control advantage" +msgstr "Negro tiene una ligera ventaja de control de dama" + +msgid "Black has a slight space advantage" +msgstr "Negro tiene una ligera ventaja de espacio" + +msgid "Black has a slight time ( development ) advantage" +msgstr "Negro tiene una ligera ventaja de tiempo (desarrollo)" + +msgid "Black has a very strong pawn structure" +msgstr "Negro tiene una estructura de peones muy fuerte" + +msgid "Black has a very weak pawn structure" +msgstr "Negro tiene una estructura de peones muy débil" + +msgid "Black has a vulnerable first rank" +msgstr "Negro tiene una primera fila vulnerables" + +msgid "Black has a well placed king" +msgstr "Negro tiene un rey bien colocada" + +msgid "Black has a well protected first rank" +msgstr "Negro tiene una primera fila bien protegido" + +msgid "Black has a well protected king" +msgstr "Negro tiene un rey bien protegido" + +msgid "Black has decisive counterplay" +msgstr "Negro tiene contrajuego decisiva" + +msgid "Black has good bishop placement" +msgstr "Negro tiene una buena colocación alfil" + +msgid "Black has good knight placement" +msgstr "Negro tiene una buena colocación caballo" + +msgid "Black has good piece coordination" +msgstr "Negro tiene una buena coordinación pieza" + +msgid "Black has good queen placement" +msgstr "Negro tiene una buena colocación de la reina" + +msgid "Black has good rook placement" +msgstr "Negro tiene una buena colocación de torres" + +msgid "Black has insufficient compensation for material deficit" +msgstr "Negro tiene una compensación insuficiente para déficit de materia" + +msgid "Black has moderate counterplay" +msgstr "Negro tiene contrajuego moderada" + +msgid "Black has moderate time control pressure" +msgstr "Negro tiene la presión de control de tiempo moderado" + +msgid "Black has more than adequate compensation for material deficit" +msgstr "Negro tiene más de una compensación adecuada por déficit de materia" + +msgid "Black has offered a draw" +msgstr "Negro ha ofrecido en tablas" + +msgid "Black has played the ending poorly" +msgstr "Negro ha jugado el que termina mal" + +msgid "Black has played the ending very poorly" +msgstr "Negro ha jugado el que termina muy mal" + +msgid "Black has played the ending very well" +msgstr "Negro ha jugado muy bien el final" + +msgid "Black has played the ending well" +msgstr "Negro ha jugado el final así" + +msgid "Black has played the middlegame poorly" +msgstr "Negro ha jugado el medio juego mal" + +msgid "Black has played the middlegame very poorly" +msgstr "Negro ha jugado el medio juego muy mal" + +msgid "Black has played the middlegame very well" +msgstr "Negro ha jugado muy bien el medio juego" + +msgid "Black has played the middlegame well" +msgstr "Negro ha jugado bien el medio juego" + +msgid "Black has played the opening poorly" +msgstr "Negro ha jugado la apertura mal" + +msgid "Black has played the opening very poorly" +msgstr "Negro ha jugado la apertura muy mal" + +msgid "Black has played the opening very well" +msgstr "Negro ha jugado muy bien la apertura" + +msgid "Black has played the opening well" +msgstr "Negro ha jugado bien la apertura" + +msgid "Black has poor bishop placement" +msgstr "Negro tiene colocación alfil pobres" + +msgid "Black has poor knight placement" +msgstr "Negro tiene colocación caballo pobre" + +msgid "Black has poor piece coordination" +msgstr "Negro tiene mala coordinación pieza" + +msgid "Black has poor queen placement" +msgstr "Negro tiene colocación reina pobres" + +msgid "Black has poor rook placement" +msgstr "Negro tiene la colocación de torres pobres" + +msgid "Black has severe time control pressure" +msgstr "Negro tiene la presión de control de tiempo severo" + +msgid "Black has slight counterplay" +msgstr "Negro tiene una ligera contrajuego" + +msgid "Black has sufficient compensation for material deficit" +msgstr "Negro tiene suficiente compensación por déficit de materia" + +msgid "Black has the attack" +msgstr "Negro tiene el ataque" + +msgid "Black has the initiative" +msgstr "Negro tiene la iniciativa" + +msgid "Black is in zugzwang" +msgstr "Negro está en Zugzwang" + +msgid "Black resigns" +msgstr "Renuncia negro" + +msgid "Black wins" +msgstr "Gana el negro" + +msgid "Black's flag fell" +msgstr "La bandera de negro cayó" + +msgid "Black's flag was called, White wins" +msgstr "La bandera de negro fue llamado, blanco gana" + +msgid "Black's turn" +msgstr "Turno de negro" + +msgid "Board Themes" +msgstr "Temas de mesa" + +msgid "Brazilian FICS" +msgstr "FICS brasileña" + +msgid "Call Flag Automatically" +msgstr "Llame a la bandera automáticamente" + +msgid "Can not install theme" +msgstr "No se puede instalar el tema" + +msgid "Can not move a chessman while reviewing the match" +msgstr "No se puede mover una pieza de ajedrez mientras revisa el partido" + +msgid "Can not open %1" +msgstr "No se puede abrir %1" + +msgid "Cancel" +msgstr "Cancelar" + +msgid "Cannot connect to server(timeseal)." +msgstr "No se puede conectar al servidor (timeseal)." + +msgid "Cannot connect to server." +msgstr "No es posible conectar con el servidor." + +msgid "Cannot find Timeseal." +msgstr "Si no encuentra Timeseal." + +msgid "Cannot find a server." +msgstr "Si no encuentra un servidor." + +msgid "Channel Font..." +msgstr "Canal Fuente..." + +msgid "Channel Tell" +msgstr "Tell canal" + +msgid "Checkmate, Black wins" +msgstr "Jaque mate, Negro gana" + +msgid "Checkmate, White wins" +msgstr "Jaque mate, blanco gana" + +msgid "Chess Engines" +msgstr "Motores de ajedrez" + +msgid "Chess Servers" +msgstr "Servidores de ajedrez" + +msgid "Chess-Square.Com" +msgstr "Chess-Square.Com" + +msgid "Chess.Net" +msgstr "Chess.Net" + +msgid "Chessman Themes" +msgstr "Temas chessman" + +msgid "Chilean FICS" +msgstr "FICS chilena" + +msgid "Click this if you want to change the keyboard shortcuts that Knights uses." +msgstr "Haga clic en esta opción si desea cambiar los atajos de teclado que utiliza Knights." + +msgid "Clicking this option will force your opponent to move immediately." +msgstr "Al hacer clic en esta opción obligará a su oponente a moverse inmediatamente." + +msgid "Clicking this will accept a draw offered by your opponent." +msgstr "Al hacer clic en este aceptará en tablas ofrecido por su oponente." + +msgid "Clicking this will connect Knights with an internet chess server." +msgstr "Al hacer clic en este se conectará Knights con un servidor de Internet de ajedrez." + +msgid "Clicking this will ignore future draw offers from your opponent." +msgstr "Al hacer clic en este ignorará futuras ofertas de tablas de su oponente." + +msgid "Clicking this will inform your opponent that you are willing draw the match." +msgstr "Al hacer clic en este informará a su oponente que está dispuesto en tablas." + +msgid "Clicking this will reject a draw offered by your opponent." +msgstr "Al hacer clic en este rechazará en tablas ofrecido por su oponente." + +msgid "Close All" +msgstr "Cierra todo" + +msgid "Close This Tab" +msgstr "Cerrar esta ficha" + +msgid "Command Line Arguments" +msgstr "Argumentos de la línea de comandos" + +msgid "Communications Programmer" +msgstr "Programador comunicaciones" + +msgid "Computer" +msgstr "Computadora" + +msgid "Computer Opponents" +msgstr "Oponentes de la computadora" + +msgid "Computer Players" +msgstr "Los jugadores de ordenador" + +msgid "Computer Players' Helper" +msgstr "Ayudante de computadora de los jugadores" + +msgid "Configure" +msgstr "Configurar" + +msgid "Configure &Key Bindings..." +msgstr "Configurar &Atajos de teclado..." + +msgid "Configure Engine" +msgstr "Configurar motor" + +msgid "Configure Server" +msgstr "Configuración del servidor" + +msgid "Configure your chess engines here." +msgstr "Configurar los motores de ajedrez aquí." + +msgid "Configure your internet chess servers here." +msgstr "Configurar los servidores de ajedrez de Internet aquí." + +msgid "Confirm Password" +msgstr "Confirmar contraseña" + +msgid "Connect to ICS" +msgstr "Conectar a ICS" + +msgid "Connect to Server" +msgstr "Conectar al servidor" + +msgid "Connected pawns" +msgstr "Peones conectados" + +msgid "Console" +msgstr "Consola" + +msgid "Counter Offer" +msgstr "Contraoferta" + +msgid "Croatian FICS" +msgstr "FICS croata" + +msgid "Current Server" +msgstr "Servidor actual" + +msgid "Date" +msgstr "Fecha" + +msgid "Decline" +msgstr "Rechazar" + +msgid "Decrease Board Size" +msgstr "Reducir el tamaño de la Junta" + +msgid "Default" +msgstr "Defecto" + +msgid "Diagonal" +msgstr "Diagonal" + +msgid "Disconnect from Server" +msgstr "Desconectarse del servidor" + +msgid "Display" +msgstr "Visualización" + +msgid "Display Startup Logo" +msgstr "Visualización del logo de inicio" + +msgid "Do Nothing" +msgstr "Hacer nada" + +msgid "Do you accept the terms of our license?" +msgstr "¿Usted acepta los términos de nuestra licencia?" + +msgid "Doubled pawns" +msgstr "Peones doblados" + +msgid "Draw match" +msgstr "Tablas partido" + +msgid "Drawish position" +msgstr "Posición Drawish" + +msgid "Draws" +msgstr "Tablas" + +msgid "Dutch FICS" +msgstr "FICS holandesa" + +msgid "Editor's Remark" +msgstr "Nota del editor" + +msgid "Email" +msgstr "Email" + +msgid "Enable Audio" +msgstr "Habilitar audio" + +msgid "Enable Book Engine" +msgstr "Habilitar el libro del motor" + +msgid "Enable Kibitzes" +msgstr "Habilitar Kibitzes" + +msgid "Enable Premove" +msgstr "Habilitar premotivar" + +msgid "Enable Seeks" +msgstr "Habilitar Se busca" + +msgid "Enable Shouts" +msgstr "Habilitar gritos" + +msgid "Enable Unregistered Tells" +msgstr "Habilitar no registrado Indica" + +msgid "Endgame" +msgstr "Final de partida" + +msgid "Engine Filename" +msgstr "Nombre de archivo del motor" + +msgid "Engine Name" +msgstr "Nombre del motor" + +msgid "Engines to Play Black" +msgstr "Motores para jugar Negro" + +msgid "Engines to Play White" +msgstr "Motores para jugar Blanco" + +msgid "Enter Text" +msgstr "Ingrese texto" + +msgid "Equal chances, active position" +msgstr "Igualdad de oportunidades, la posición activa" + +msgid "Equal chances, quiet position" +msgstr "Igualdad de oportunidades, lugar tranquilo" + +msgid "Equivalent move" +msgstr "Movimiento equivalente" + +msgid "Error with black book engine" +msgstr "Error con el motor de libro negro" + +msgid "Error with black engine" +msgstr "Error con el motor en negro" + +msgid "Error with white book engine" +msgstr "Error con el motor de libro blanco" + +msgid "Error with white engine" +msgstr "Error con motor blanco" + +msgid "Etc." +msgstr "Etc." + +msgid "Filter Everything" +msgstr "Todo filtrar" + +msgid "Find &Next" +msgstr "Encuentra el &proximo" + +msgid "Find PGN..." +msgstr "Encuentra PGN..." + +msgid "Find Player Images File..." +msgstr "Encuentra jugador Imágenes de archivo..." + +msgid "For Current Match Only" +msgstr "Para Partido sólo actual" + +msgid "Forced move" +msgstr "Jugada forzada" + +msgid "Free Internet Chess Server" +msgstr "Con internet gratuito de ajedrez servidor" + +msgid "French FICS" +msgstr "FICS francés" + +msgid "General" +msgstr "General" + +msgid "German FICS" +msgstr "FICS alemán" + +msgid "Global Chess Server" +msgstr "Servidor de ajedrez mundial" + +msgid "Good move" +msgstr "Buen movimiento" + +msgid "Hanging pawns" +msgstr "Colgando peones" + +msgid "Hint" +msgstr "Insinuación" + +msgid "Human" +msgstr "Humano" + +msgid "Ignore This Player" +msgstr "No haga caso de este jugador" + +msgid "Illegal Move" +msgstr "Mover ilegal" + +msgid "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." +msgstr "Con el fin de que a jugar ajedrez en línea, Knights tendrá que conectarse a un servidor de ajedrez. Knights tiene una lista de varios de estos servidores. Si lo desea, esta lista se puede utilizar para configurar automáticamente los Knights." + +msgid "Increase Board Size" +msgstr "Aumentar el tamaño del Consejo" + +msgid "Increment" +msgstr "Incremento" + +msgid "Increment Per Move" +msgstr "De incremento por jugada" + +msgid "Install Theme..." +msgstr "Instalar el tema..." + +msgid "Installed theme locally" +msgstr "Tema instalado localmente" + +msgid "Internet Chess Club" +msgstr "Internet Chess Club" + +msgid "Is Rated?" +msgstr "Tiene una clasificación?" + +msgid "Isolated pawn" +msgstr "Peón aislado" + +msgid "KDE3 Compatability Patch" +msgstr "KDE3 Parche de Compatibilidad" + +msgid "Kibitz" +msgstr "Kibitz" + +msgid "Knights" +msgstr "Knights" + +msgid "Knights Setup Wizard" +msgstr "Knights Asistente para la instalación" + +msgid "Knights Themes" +msgstr "Temas Knights" + +msgid "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." +msgstr "Knights no se puede jugar una partida de ajedrez contra sin ayuda. Conocido como motores de ajedrez, estos ayudantes se pueden encontrar en Internet y muchas veces se incluyen con su distribución. Knights puede mirar para los motores de ajedrez que ya pueda tener. Si lo encuentra, Knights se configurará para usarlos." + +msgid "Knights can not start Timeseal.\nPlease make sure you have the correct path and filename configured." +msgstr "Knights no se puede iniciar Timeseal.\nPor favor asegúrese de que tiene la ruta correcta y el nombre configurado." + +msgid "Knights has now configured itself according to your choices. We strongly recommend that you read the documentation to make full use of all that Knights has to offer. You can access it by pressing F1." +msgstr "Knights ahora se ha configurado en sí de acuerdo a sus opciones. Es muy recomendable que lea la documentación para hacer un uso completo de todo lo que tiene que ofrecer Knights. Se puede acceder a él pulsando la tecla F1." + +msgid "Knights is unable to connect to the server.\n Please make sure your internet connection is working and try again." +msgstr "Knights es incapaz de conectar con el servidor.\nPor favor asegúrese de que su conexión a Internet funciona y vuelve a intentarlo." + +msgid "Large" +msgstr "Grande" + +msgid "Last History Item" +msgstr "Último elemento Historial" + +msgid "Let Knights configure chess servers?" +msgstr "Vamos Knights configurar servidores de ajedrez?" + +msgid "Let Knights handle PGN files?" +msgstr "Vamos Knights manejar archivos PGN?" + +msgid "Let Knights handle your .pgn files?" +msgstr "Vamos Knights manejar sus archivos .pgn?" + +msgid "Let Knights search for chess engines?" +msgstr "Vamos Knights búsqueda de motores de ajedrez?" + +msgid "Line" +msgstr "Línea" + +msgid "Load PGN..." +msgstr "Cargar PGN..." + +msgid "Loading complete" +msgstr "Carga completa" + +msgid "Log File" +msgstr "Archivo de registro" + +msgid "Log in as guest" +msgstr "Entrar como invitado" + +msgid "Log in to the chess server using this name and password." +msgstr "Iniciar sesión en el servidor de ajedrez usando este nombre y contraseña." + +msgid "Login" +msgstr "Iniciar sesión" + +msgid "Login Prompt" +msgstr "indicador de conexión" + +msgid "Login:" +msgstr "Iniciar sesión:" + +msgid "Losses" +msgstr "Pérdidas" + +msgid "Lost contact with opponent" +msgstr "Pérdida de contacto con el oponente" + +msgid "Match Type" +msgstr "Tipo de partido" + +msgid "Match paused" +msgstr "Partido pausa" + +msgid "Maximum" +msgstr "Máximo" + +msgid "Minimum" +msgstr "Mínimo" + +msgid "Move &Now" +msgstr "&Movimiento ahora" + +msgid "Moves Per Base Time" +msgstr "Se movimientos por la base de tiempo" + +msgid "Name" +msgstr "Nombre" + +msgid "Next History Item" +msgstr "Siguiente Historia de artículos" + +msgid "Next Move" +msgstr "Próximo movimiento" + +msgid "No" +msgstr "No" + +msgid "No Filtering" +msgstr "Sin filtros" + +msgid "Notification" +msgstr "Notificación" + +msgid "Notification Font..." +msgstr "Notificación de fuentes..." + +msgid "Novelty" +msgstr "Novedad" + +msgid "Options" +msgstr "Opciones" + +msgid "Other Display Options" +msgstr "Otras Opciones de visualización" + +msgid "Page %1 of %2" +msgstr "Página 1 de 2" + +msgid "Page Down" +msgstr "Av Pág" + +msgid "Page Up" +msgstr "Re Pág" + +msgid "Password" +msgstr "Contraseña" + +msgid "Password:" +msgstr "Contraseña:" + +msgid "Patches and suggestions" +msgstr "Parches y sugerencias" + +msgid "Pause" +msgstr "Pausa" + +msgid "Pause on Minimize" +msgstr "Pausa en Minimizar" + +msgid "Pawn Promotion" +msgstr "Promoción del peón" + +msgid "Player History" +msgstr "Historia del jugador" + +msgid "Player Images File:" +msgstr "Imágenes del jugador del archivo:" + +msgid "Player Info" +msgstr "Información del jugador" + +msgid "Player Strength" +msgstr "Fuerza del jugador" + +msgid "Please read and accept our license:" +msgstr "Por favor, lea y acepte nuestra licencia:" + +msgid "Poor move" +msgstr "Movimiento pobre" + +msgid "Previous Move" +msgstr "Mover anterior" + +msgid "Private Font..." +msgstr "Fuentes privada..." + +msgid "Private Matches" +msgstr "Partidos privados" + +msgid "Private Tell" +msgstr "Tell privada" + +msgid "Profanity Filter" +msgstr "Filtro profanidad" + +msgid "Project Manager and Programmer" +msgstr "Director del proyecto y Programmer" + +msgid "Promote your pawn to..." +msgstr "Promocionar su peón para..." + +msgid "Protocol" +msgstr "Protocolo" + +msgid "Questionable move" +msgstr "Jugada dudosa" + +msgid "Rated" +msgstr "Clasificar" + +msgid "Rating" +msgstr "Clasificación" + +msgid "Reading File" +msgstr "La lectura del archivo" + +msgid "Ready" +msgstr "Listo" + +msgid "Remember My Password" +msgstr "Recordar mi contraseña" + +msgid "Reply to the Channel" +msgstr "Responder al Canal" + +msgid "Reply to the Last Tell" +msgstr "Respuesta a la última Tell" + +msgid "Resign" +msgstr "Renunciar" + +msgid "Restore Defaults" +msgstr "Restaurar los valores predeterminados" + +msgid "Result" +msgstr "Resultado" + +msgid "Resume" +msgstr "Reanudar" + +msgid "Reverse Board Orientation" +msgstr "Invertir Orientación de la Junta" + +msgid "Round" +msgstr "Redondo" + +msgid "Save Match &As..." +msgstr "G&uardar Como Partido..." + +msgid "Save Match on Close?" +msgstr "Guardar Partido en Cerrar?" + +msgid "Save Match..." +msgstr "Guardar Partido..." + +msgid "Save Match?" +msgstr "Guardar partido?" + +msgid "Saving complete" +msgstr "Guardando completa" + +msgid "Seconds Between Seek Updates" +msgstr "Busque segundos entre actualizaciones" + +msgid "Seek Matches" +msgstr "Busque Partidos" + +msgid "Select &All" +msgstr "Seleccionar &todo" + +msgid "Select Computer Player" +msgstr "Seleccione la computadora del jugador" + +msgid "Select Email Address" +msgstr "Seleccionar dirección email" + +msgid "Select Server" +msgstr "Seleccionar servidor" + +msgid "Select this to pause the clock for this match." +msgstr "Seleccione esta opción para hacer una pausa en el reloj para este partido." + +msgid "Select this to retract your last move." +msgstr "Seleccione esta opción para retraer el último movimiento." + +msgid "Send Email?" +msgstr "¿Enviar email?" + +msgid "Server Name" +msgstr "Nombre del servidor" + +msgid "Server Port" +msgstr "Puerto de servicio" + +msgid "Server URL" +msgstr "URL del servidor" + +msgid "Servers" +msgstr "Servidores" + +msgid "Setup Complete" +msgstr "Instalación completa" + +msgid "Shout" +msgstr "Gritar" + +msgid "Shout Font..." +msgstr "Fuentes gritar..." + +msgid "Show Coordinates" +msgstr "Mostrar Coordenadas" + +msgid "Show Last Move" +msgstr "La última jugada" + +msgid "Singular move" +msgstr "Movimiento singular" + +msgid "Site" +msgstr "Sitio" + +msgid "Small" +msgstr "Pequeña" + +msgid "Sought Matches Graph" +msgstr "Partidos buscado Gráfico" + +msgid "Sought Matches List" +msgstr "Lista de mucha demanda Partidos" + +msgid "Specify the location of your Knights data directory." +msgstr "Especificar la ubicación del directorio de datos de Knights." + +msgid "Speculative move" +msgstr "Movimiento especulativo" + +msgid "Standard" +msgstr "Estándar" + +msgid "Standard Font..." +msgstr "Fuente estándar..." + +msgid "Start a Match vs. PC" +msgstr "Comenzar un partido vs PC" + +msgid "Start a New Match" +msgstr "Comenzar una nueva partida" + +msgid "Starting computer players, please wait" +msgstr "Partiendo jugadores de la computadora, por favor espere" + +msgid "Strong" +msgstr "Fuerte" + +msgid "Swedish FICS" +msgstr "FICS sueca" + +msgid "TQtopia port and patches" +msgstr "El puerto y los parches TQtopia" + +msgid "Tell All" +msgstr "Dile Todos" + +msgid "Tell Opponent" +msgstr "Dile Rival" + +msgid "Tell User" +msgstr "Dile usuario" + +msgid "Tell User Error" +msgstr "Dile a un error del usuario" + +msgid "Tell..." +msgstr "Contar..." + +msgid "Thank you for installing Knights, the graphical chess interface for TDE. To help you get started quickly, there are a few things Knights will need to setup. You should click 'Next' to see what they are." +msgstr "Gracias por la instalación de Knights, la interfaz gráfica de ajedrez para que TDE. Para ayudarle a empezar rápidamente, hay algunas cosas Knights tendrá que configurar. Debe hacer clic en 'Siguiente' para ver lo que son." + +msgid "The Knights Chess Interface\n\nKnights is a chess interface\nfor the Trinity Desktop Environment." +msgstr "La interfaz de Ajedrez Knights.\n\nKnights es una interfaz de ajedrez\nde la Trinity Desktop Environment." + +msgid "The Load command will allow you to select a previously saved match and play it again." +msgstr "El comando de carga le permitirá seleccionar un juego guardado previamente y reproducirlo de nuevo." + +msgid "The Print command will allow you to print this game's notation on your printer." +msgstr "El comando de impresión le permitirá imprimir la notación de este juego en su impresora." + +msgid "The Quit command will stop all matches and exit Knights." +msgstr "El comando Dejar se detendrá todos los partidos y salir de Knights." + +msgid "The Save command will allow you to store a copy of your current match for later use." +msgstr "El comando Guardar le permitirá almacenar una copia de su partida actual para su uso posterior." + +msgid "The computer opponent assigned to play %1 has crashed" +msgstr "El opositor de la computadora asignada para jugar %1 se ha estrellado" + +msgid "The theme could not be installed:\n%1" +msgstr "El tema no se puede instalar:\n%1" + +msgid "Theme Size" +msgstr "Tamaño tema" + +msgid "There are no servers configured.\nPlease make sure you have at least one server configured." +msgstr "No hay servidores configurados.\nPor favor asegúrese de que ha configurado al menos un servidor." + +msgid "There was an error while loading the file" +msgstr "Se ha producido un error al cargar el archivo" + +msgid "There was an error while saving the file" +msgstr "Se ha producido un error al guardar el archivo" + +msgid "These settings determine how Knights displays itself to you." +msgstr "Estos ajustes determinan la forma Knights muestra ante ti." + +msgid "These settings determine what Knights sounds like." +msgstr "Estos valores determinan lo que suena como Knights." + +msgid "This allows you to begin a new match." +msgstr "Esto le permite comenzar una nueva partida." + +msgid "This command removes the current match." +msgstr "Este comando elimina la partida actual." + +msgid "This command will remove all matches that are currently loaded." +msgstr "Este comando eliminará todos los partidos que se cargan actualmente." + +msgid "This lets you install downloaded themes into Knights." +msgstr "Esto le permite instalar temas descargados en Knights." + +msgid "This opens a new window which allows you to customize Knights to your particular tastes." +msgstr "Esto abre una nueva ventana que le permite personalizar los Knights a sus gustos particulares." + +msgid "This toggles your opponent's ability to think while it's your turn." +msgstr "Esto cambia la capacidad de su rival para pensar mientras que es su turno." + +msgid "This will ask your opponent for a hint." +msgstr "Esto le pregunte a su oponente para obtener una pista." + +msgid "This will reverse the chessboard's orientation by 180 degrees." +msgstr "Esto invertirá la orientación del tablero de ajedrez 180 grados." + +msgid "Time" +msgstr "Hora" + +msgid "Time Controls" +msgstr "Controles de tiempo" + +msgid "Time Odds Match" +msgstr "Hora del partido de Apuestas" + +msgid "Timeseal" +msgstr "Timeseal" + +msgid "URL" +msgstr "URL" + +msgid "Unclear position" +msgstr "Posición poco clara" + +msgid "Unknown" +msgstr "Desconocido" + +msgid "Unrated" +msgstr "Sin valoración" + +msgid "Use this to concede the match to your opponent." +msgstr "Utilice esta opción para conceder el partido a su oponente." + +msgid "Use this to declare the match over, due to your opponent being out of time." +msgstr "Use esto para declarar el partido más, debido a que su oponente está fuera de tiempo." + +msgid "User info" +msgstr "Información de usuario" + +msgid "Username" +msgstr "Nombre de usuario" + +msgid "Various aspects of Knights get configured here." +msgstr "Diversos aspectos de Knights quedan configurados aquí." + +msgid "Very good move" +msgstr "Muy buen movimiento" + +msgid "Very poor move" +msgstr "Muy mala jugada" + +msgid "Volume" +msgstr "Volumen" + +msgid "Weak" +msgstr "Débiles" + +msgid "Weak point" +msgstr "Punto débil" + +msgid "Welcome to Knights v%1!" +msgstr "Bienvenido a Knights v%1!" + +msgid "When Knights Begins It Should:" +msgstr "Empieza cuando los Knights debería:" + +msgid "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." +msgstr "Cuando los Knights ahorra un partido en el disco, se utiliza Portable Game Notation (PGN) para almacenar el partido. Varios otros juegos de ajedrez de ordenador utilizan PGN también. Si lo desea, puede haber Knights del visor PGN por defecto en este sistema." + +msgid "Whisper" +msgstr "Susurro" + +msgid "Whisper Font..." +msgstr "Whisper Fuente..." + +msgid "White" +msgstr "Blanco" + +msgid "White Book Engine Problem" +msgstr "Libro Blanco de problema del motor" + +msgid "White Engine Problem" +msgstr "Problema del motor de blanco" + +msgid "White has a crushing advantage ( Black should resign )" +msgstr "Blanco tiene una ventaja de trituración (Negro debería renunciar)" + +msgid "White has a decisive advantage" +msgstr "Blanco tiene una ventaja decisiva" + +msgid "White has a decisive center control advantage" +msgstr "Blanco tiene una decisiva ventaja del control central" + +msgid "White has a decisive kingside control advantage" +msgstr "Blanco tiene una ventaja decisiva de control flanco de rey" + +msgid "White has a decisive queenside control advantage" +msgstr "Blanco tiene una ventaja decisiva de control flanco de dama" + +msgid "White has a decisive space advantage" +msgstr "Blanco tiene una ventaja decisiva espacio" + +msgid "White has a decisive time ( development ) advantage" +msgstr "Blanco tiene un momento decisivo ventaja (desarrollo)" + +msgid "White has a lasting initiative" +msgstr "Blanco tiene una iniciativa duradera" + +msgid "White has a moderate advantage" +msgstr "Blanco tiene una ventaja moderada" + +msgid "White has a moderate center control advantage" +msgstr "Blanco tiene una ventaja de control de centro moderado" + +msgid "White has a moderate kingside control advantage" +msgstr "Blanco tiene una ventaja de control flanco de rey moderada" + +msgid "White has a moderate queenside control advantage" +msgstr "Blanco tiene una ventaja de control de dama moderada" + +msgid "White has a moderate space advantage" +msgstr "Blanco tiene una ventaja de espacio moderada" + +msgid "White has a moderate time ( development ) advantage" +msgstr "Blanco tiene un tiempo moderado ventaja (desarrollo)" + +msgid "White has a moderately strong pawn structure" +msgstr "Blanco tiene una estructura de peones moderadamente fuerte" + +msgid "White has a moderately weak pawn structure" +msgstr "Blanco tiene una estructura de peones moderadamente débil" + +msgid "White has a pair of Bishops" +msgstr "Blanco tiene un par de Alfiles" + +msgid "White has a poorly placed king" +msgstr "Blanco tiene un rey mal colocada" + +msgid "White has a poorly protected king" +msgstr "Blanco tiene un rey mal protegido" + +msgid "White has a slight advantage" +msgstr "Blanco tiene una ligera ventaja" + +msgid "White has a slight center control advantage" +msgstr "Blanco tiene una ligera ventaja del control central" + +msgid "White has a slight kingside control advantage" +msgstr "Blanco tiene una ligera ventaja de control flanco de rey" + +msgid "White has a slight queenside control advantage" +msgstr "Blanco tiene una ligera ventaja de control de dama" + +msgid "White has a slight space advantage" +msgstr "Blanco tiene una ligera ventaja de espacio" + +msgid "White has a slight time ( development ) advantage" +msgstr "Blanco tiene una ligera ventaja de tiempo (desarrollo)" + +msgid "White has a very strong pawn structure" +msgstr "Blanco tiene una estructura de peones muy fuerte" + +msgid "White has a very weak pawn structure" +msgstr "Blanco tiene una estructura muy débil peón" + +msgid "White has a vulnerable first rank" +msgstr "Blanco tiene un primer rango vulnerables" + +msgid "White has a well placed king" +msgstr "Blanco tiene un rey bien colocada" + +msgid "White has a well protected first rank" +msgstr "Blanco tiene un primer rango bien protegido" + +msgid "White has a well protected king" +msgstr "Blanco tiene un rey bien protegido" + +msgid "White has decisive counterplay" +msgstr "Blanco tiene contrajuego decisiva" + +msgid "White has good bishop placement" +msgstr "Blanco tiene buena colocación alfil" + +msgid "White has good knight placement" +msgstr "Blanco tiene buena colocación caballo" + +msgid "White has good piece coordination" +msgstr "Blanco tiene una buena coordinación pieza" + +msgid "White has good queen placement" +msgstr "Blanco tiene buena colocación reina" + +msgid "White has good rook placement" +msgstr "Blanco tiene una buena colocación de torres" + +msgid "White has insufficient compensation for material deficit" +msgstr "Blanco tiene una compensación insuficiente para déficit de materia" + +msgid "White has moderate counterplay" +msgstr "Blanco tiene contrajuego moderada" + +msgid "White has moderate time control pressure" +msgstr "Blanco tiene la presión de control de tiempo moderado" + +msgid "White has more than adequate compensation for material deficit" +msgstr "Blanco tiene más de una compensación adecuada por déficit de materia" + +msgid "White has offered a draw" +msgstr "Blanco ha ofrecido en tablas" + +msgid "White has played the ending poorly" +msgstr "Blanco ha jugado el que termina mal" + +msgid "White has played the ending very poorly" +msgstr "Blanco ha jugado el que termina muy mal" + +msgid "White has played the ending very well" +msgstr "Blanco ha jugado muy bien el final" + +msgid "White has played the ending well" +msgstr "Blanco ha jugado el final así" + +msgid "White has played the middlegame poorly" +msgstr "Blanco ha jugado el medio juego mal" + +msgid "White has played the middlegame very poorly" +msgstr "Blanco ha jugado el medio juego muy mal" + +msgid "White has played the middlegame very well" +msgstr "Blanco ha jugado muy bien el medio juego" + +msgid "White has played the middlegame well" +msgstr "Blanco ha jugado bien el medio juego" + +msgid "White has played the opening poorly" +msgstr "Blanco ha jugado la apertura mal" + +msgid "White has played the opening very poorly" +msgstr "Blanco ha jugado la apertura muy mal" + +msgid "White has played the opening very well" +msgstr "Blanco ha jugado muy bien la apertura" + +msgid "White has played the opening well" +msgstr "Blanco ha jugado bien la apertura" + +msgid "White has poor bishop placement" +msgstr "Blanco tiene la colocación alfil pobres" + +msgid "White has poor knight placement" +msgstr "Blanco tiene la colocación caballo pobre" + +msgid "White has poor piece coordination" +msgstr "Blanco tiene mala coordinación pieza" + +msgid "White has poor queen placement" +msgstr "Blanco tiene la colocación reina pobres" + +msgid "White has poor rook placement" +msgstr "Blanco tiene la colocación de torres pobres" + +msgid "White has severe time control pressure" +msgstr "Blanco tiene severa presión de control de tiempo" + +msgid "White has slight counterplay" +msgstr "Blanco tiene una ligera contrajuego" + +msgid "White has sufficient compensation for material deficit" +msgstr "Blanco tiene suficiente compensación por déficit de materia" + +msgid "White has the attack" +msgstr "Blanco tiene el ataque" + +msgid "White has the initiative" +msgstr "Blanco tiene la iniciativa" + +msgid "White is in zugzwang" +msgstr "Blanco es en Zugzwang" + +msgid "White resigns" +msgstr "Blanco renuncia" + +msgid "White wins" +msgstr "Las blanco ganan" + +msgid "White's flag fell" +msgstr "La bandera de blanco cayó" + +msgid "White's flag was called, Black wins" +msgstr "La bandera de color blanco se llama, Negro gana" + +msgid "White's turn" +msgstr "El turno de blanco" + +msgid "Wins" +msgstr "Victorias" + +msgid "With the idea..." +msgstr "Con la idea..." + +msgid "Worse Move" +msgstr "Mover peor" + +msgid "Worst move" +msgstr "Peor movimiento" + +msgid "Would you like to email this move?" +msgstr "¿Le gustaría envía este movimiento?" + +msgid "Would you like to save this match?" +msgstr "¿Le gustaría guardar este partido?" + +msgid "XBoard protocol" +msgstr "Protocolo XBoard" + +msgid "Yes" +msgstr "Sí" + +msgid "You do not have permission to install this theme systemwide, so Knights installed it locally." +msgstr "Usted no tiene permiso para instalar este tema en todo el sistema, por lo que los Knights instalado localmente." + +msgid "You selected %1 to play black's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play black's book." +msgstr "Seleccionó %1 para jugar el libro de negro,\npero sólo se puede utilizar como un motor normal.\nPor favor seleccione otro motor de jugar el libro de negro." + +msgid "You selected %1 to play black,\nbut it can only be used as a book engine.\nPlease select another engine to play black." +msgstr "Seleccionó %1 para jugar negro,\npero sólo se puede utilizar como un motor de libro.\nPor favor seleccione otro motor para jugar negro." + +msgid "You selected %1 to play white's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play white's book." +msgstr "Seleccionó %1 para jugar el libro de blanco,\npero sólo se puede utilizar como un motor normal.\nPor favor seleccione otro motor de jugar el libro de blanco." + +msgid "You selected %1 to play white,\nbut it can only be used as a book engine.\nPlease select another engine to play white." +msgstr "Seleccionó %1 para jugar blanco,\npero sólo se puede utilizar como un motor de libro.\nPor favor seleccione otro motor para jugar blanco." + +msgid "You've Been Challenged:" +msgstr "Usted ha sido puesta en duda:" + +msgid "Your Name:" +msgstr "Tu nombre:" + +msgid "Zoom &In" +msgstr "&Acercarse" + +msgid "Zoom &Out" +msgstr "&Disminuir el zoom" diff --git a/Apps/knights/knights.SlackBuild b/Apps/knights/knights.SlackBuild new file mode 100755 index 0000000..aeacd86 --- /dev/null +++ b/Apps/knights/knights.SlackBuild @@ -0,0 +1,135 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=knights +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +knights: A graphical chess interface for the Trinity Desktop Environment +knights: +knights: Download themepack [additional boards and chessman themes] from: +knights: http://sourceforge.net/project/showfiles.php?group_id=31461 +knights: +knights: Needs separate chess engines, for example gnuchess, stockfish, komodo. +knights: +knights: With language support for: +knights: +knights: en $(echo $langs) +knights: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* CreatingThemes FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# there is a Spanish language file in the source, but it has no translations in it .. +# the included es.po file is a Google translation - if you're happy to use it, +# then to include it in the build, put it in the same directory as this SB script +cp $SRCDIR/es.po po || true +# +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done +sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am +langs=$(echo $langs | sed 's|.po||g') +# +# Only French and English help documents are in the source, +# if French is not required, only package English docs +[[ $langs != *fr* ]] && sed -i "s|LANGUAGES = en fr|LANGUAGES = en|" doc/Makefile.am + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/ksquirrel/README b/Apps/ksquirrel/README old mode 100644 new mode 100755 index 77b4108..94c25f2 --- a/Apps/ksquirrel/README +++ b/Apps/ksquirrel/README @@ -1,5 +1,3 @@ If ksquirrel is to be built with exif and Kipi Plugins support, build and install kipi-plugins first. Needs libksquirrel. - -The default build is for [US] English only - additional language support can be set by the 'lang' variable. diff --git a/Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz b/Apps/ksquirrel/ksquirrel-R14.0.3-en-docs.tar.xz old mode 100644 new mode 100755 diff --git a/Apps/ksquirrel/ksquirrel-R14.0.3.SlackBuild b/Apps/ksquirrel/ksquirrel-R14.0.3.SlackBuild deleted file mode 100644 index 01b7a7c..0000000 --- a/Apps/ksquirrel/ksquirrel-R14.0.3.SlackBuild +++ /dev/null @@ -1,238 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=ksquirrel -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" -# add English help documentation -tar xf $SRCDIR/ksquirrel-R14.0.3-en-docs.tar.xz -cp doc/ru/*png doc/en -# [US] English is the default language, set additional language options to any of: -# cs de en_GB it pl ru tr uk -# Example: lang="pl ru uk" -lang="" -# -langpo="";for Lang in $lang;do langpo=$(echo $Lang".po" $langpo);done -sed -i "s|POFILES =.*$|POFILES = $langpo|" po/Makefile.am -# Only Russian and English help documents are in the source, -# if Russian is not required, only package English docs -[[ $lang != *ru* ]] && sed -i "s| ru||" doc/Makefile.am -return 0 -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -ksquirrel: KSquirrel is an image viewer for TDE. -ksquirrel: -ksquirrel: Image decoding is based on it's own decoders (ksquirrel-libs) -ksquirrel: -ksquirrel: With OpenGL and KIPI support. -ksquirrel: -ksquirrel: With language support for: -ksquirrel: -ksquirrel: en $(echo $lang) -ksquirrel: -ksquirrel: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd applications -cd ${PRGNAM} - - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -./configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -(cd ${PRGNAM};cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION) || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/ksquirrel/ksquirrel.SlackBuild b/Apps/ksquirrel/ksquirrel.SlackBuild new file mode 100755 index 0000000..9d565d9 --- /dev/null +++ b/Apps/ksquirrel/ksquirrel.SlackBuild @@ -0,0 +1,133 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=ksquirrel +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +ksquirrel: KSquirrel is an image viewer for TDE. +ksquirrel: +ksquirrel: Image decoding is based on it's own decoders (ksquirrel-libs) +ksquirrel: +ksquirrel: With OpenGL and KIPI support. +ksquirrel: +ksquirrel: With language support for: +ksquirrel: +ksquirrel: en $(echo $langs) +ksquirrel: +ksquirrel: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# add English help documentation +tar xf $SRCDIR/ksquirrel-R14.0.3-en-docs.tar.xz +cp doc/ru/*png doc/en + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done +sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am +langs=$(echo $langs | sed 's|.po||g') + + +# Only Russian and English help documents are in the source, +# if Russian is not required, only package English docs +[[ $I18N != *ru* ]] && sed -i "s| ru||" doc/Makefile.am + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild b/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild deleted file mode 100644 index 98a3704..0000000 --- a/Apps/ksquirrel/libksquirrel-R14.0.3.SlackBuild +++ /dev/null @@ -1,224 +0,0 @@ -#!/bin/sh -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide -# All rights reserved. -# -# Permission to use, copy, modify, and distribute this software for -# any purpose with or without fee is hereby granted, provided that -# the above copyright notice and this permission notice appear in all -# copies. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR -# CONTRIBUTORS 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=libksquirrel -VERSION=${VERSION:-R14.0.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} -PREFIX=/usr - - -Options() -{ -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -#QTDIR="" -return -} - - -SlackDesc() -{ -echo " -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -libksquirrel: ksquirrel-libs is a set of image codecs, -libksquirrel: containing regular libraries for KSquirrel. -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -libksquirrel: -" > $PKG/install/slack-desc -} - - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/libraries/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} - -cd libraries -cd ${PRGNAM} - -# list only files > zero bytes -DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true -Options - -# update admin for installed version of libtool -cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ -cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in - -make -f admin/Makefile.common - -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - - -# Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" -./configure \ - --prefix=${PREFIX} \ - --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ - --disable-rpath \ - --enable-closure - - - make ${NUMJOBS:-} || exit 1 - make DESTDIR=$PKG install || exit 1 -cd - - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -(cd ${PRGNAM};cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION) || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -SlackDesc - - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_} - diff --git a/Apps/potracegui/README b/Apps/potracegui/README new file mode 100755 index 0000000..ac71df0 --- /dev/null +++ b/Apps/potracegui/README @@ -0,0 +1 @@ +Potracegui is a graphical frontend for potrace, which is in turn a bitmap tracing program. diff --git a/Apps/potracegui/potracegui.SlackBuild b/Apps/potracegui/potracegui.SlackBuild new file mode 100755 index 0000000..d08567b --- /dev/null +++ b/Apps/potracegui/potracegui.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=potracegui +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: Potracegui is a GUI interface for potrace, a program for tracing +$PRGNAM: bitmapped images and transforming them into vector format images. +$PRGNAM: +$PRGNAM: Potracegui can load remote files (web, ftp...), use any image format +$PRGNAM: recognized by TDE, and supports drag and drop. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo -e "\nExtracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd applications +cd ${PRGNAM} + +patch -p0 < $SRCDIR/reformat-message.patch + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make ${NUMJOBS:-} || exit 1 + make DESTDIR=$PKG install || exit 1 + + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ../;cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Apps/potracegui/reformat-message.patch b/Apps/potracegui/reformat-message.patch new file mode 100755 index 0000000..c35148a --- /dev/null +++ b/Apps/potracegui/reformat-message.patch @@ -0,0 +1,55 @@ +--- src/mainwidget.cpp 2015-09-23 06:31:02.000000000 +0100 ++++ src/mainwidget.cpp 2016-06-20 20:42:56.519172594 +0100 +@@ -919,7 +919,7 @@ + else + { + emit(signalChangeStatusbar(i18n("Output format not recognized"))); +- previewLabel->setText(i18n("Sorry, but the image format which you are working with\nis not recognized by TDE.\nThe image will be correctly saved if you want to,\nbut to see a preview try working with another image format (EPS and PGM showld work well)\nand only when you are satisfied with the result revert to the format\nof your choiche and save the result.")); ++ previewLabel->setText(i18n("Sorry, but the image format which you are working\nwith is not recognized by TDE.\nThe image will be correctly saved if you want to,\nbut to see a preview try working with another image\nformat (EPS and PGM should work well) and only\nwhen you are satisfied with the result revert to\nthe format of your choice and save the result.")); + imagesTabs->setCurrentPage(1); + setCursor(ArrowCursor); + return; +--- po/potracegui.pot 2015-09-23 06:31:02.000000000 +0100 ++++ po/potracegui.pot 2016-06-20 20:46:04.586821425 +0100 +@@ -209,13 +209,13 @@ + + #: mainwidget.cpp:896 + msgid "" +-"Sorry, but the image format which you are working with\n" +-"is not recognized by TDE.\n" ++"Sorry, but the image format which you are working\n" ++"with is not recognized by TDE.\n" + "The image will be correctly saved if you want to,\n" +-"but to see a preview try working with another image format (EPS and PGM " +-"showld work well)\n" +-"and only when you are satisfied with the result revert to the format\n" +-"of your choiche and save the result." ++"but to see a preview try working with another image\n" ++"format (EPS and PGM should work well) and only\n" ++"when you are satisfied with the result revert to\n" ++"the format of your choice and save the result." + msgstr "" + + #: mainwidget.cpp:913 +--- po/de.po 2015-09-23 06:31:02.000000000 +0100 ++++ po/de.po 2016-06-20 20:46:13.183713949 +0100 +@@ -210,13 +210,13 @@ + + #: mainwidget.cpp:896 + msgid "" +-"Sorry, but the image format which you are working with\n" +-"is not recognized by TDE.\n" ++"Sorry, but the image format which you are working\n" ++"with is not recognized by TDE.\n" + "The image will be correctly saved if you want to,\n" +-"but to see a preview try working with another image format (EPS and PGM " +-"showld work well)\n" +-"and only when you are satisfied with the result revert to the format\n" +-"of your choiche and save the result." ++"but to see a preview try working with another image\n" ++"format (EPS and PGM should work well) and only\n" ++"when you are satisfied with the result revert to\n" ++"the format of your choice and save the result." + msgstr "" + + #: mainwidget.cpp:913 diff --git a/Apps/tde-style-qtcurve/slack-desc b/Apps/tde-style-qtcurve/slack-desc old mode 100644 new mode 100755 diff --git a/Apps/tde-style-qtcurve/tde-style-qtcurve.SlackBuild b/Apps/tde-style-qtcurve/tde-style-qtcurve.SlackBuild index bc349be..7ec5530 100755 --- a/Apps/tde-style-qtcurve/tde-style-qtcurve.SlackBuild +++ b/Apps/tde-style-qtcurve/tde-style-qtcurve.SlackBuild @@ -29,105 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications cd ${PRGNAM} @@ -142,19 +49,21 @@ cd build-${PRGNAM} -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DBUILD_ALL="ON" \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Apps/tdeio-locate/slack-desc b/Apps/tdeio-locate/slack-desc old mode 100644 new mode 100755 diff --git a/Apps/tdeio-locate/tdeio-locate.SlackBuild b/Apps/tdeio-locate/tdeio-locate.SlackBuild index 70ecc74..b07dd63 100755 --- a/Apps/tdeio-locate/tdeio-locate.SlackBuild +++ b/Apps/tdeio-locate/tdeio-locate.SlackBuild @@ -25,111 +25,16 @@ PRGNAM=tdeio-locate VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog COPYING TODO TRINITY* VERSION " -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -# Input URL: http://tde-mirror.yosemite.net/trinity/releases/R14.0.3/applications/tdeio-locate-R14.0.3.tar.bz2 -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/applications/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd applications/${PRGNAM} chown -R root:root . @@ -142,19 +47,21 @@ cd build-${PRGNAM} -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DBUILD_ALL="ON" \ .. make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -163,7 +70,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 cd - diff --git a/BUILD-TDE.sh b/BUILD-TDE.sh new file mode 100755 index 0000000..91e4fc8 --- /dev/null +++ b/BUILD-TDE.sh @@ -0,0 +1,392 @@ +#!/bin/sh + +export TMPVARS=/tmp/build/vars +if [ ! -d $TMPVARS ]; then + mkdir -p $TMPVARS +fi + +dialog --no-shadow --colors --title " Introduction " --msgbox \ +"\n + This is the set up script for TDE R14.0.3 SlackBuilds on Slackware Current for setting user preferences and options. +\n\n + Source archives can be stored locally or downloaded during the build from a selected TDE mirror site. +\n\n + A package build list is created and successfully built and installed packages are removed from that list as the build progresses. +\n\n + US English is the default language and support for additional languages can be added. +\n\n + There is an option to abort the build on the final setup screen - so just run through the options and familiarize yourself with them before an actual build. " \ +21 75 + + +rm -f $TMPVARS/build-new +dialog --yes-label "New" --no-label "Re-use" --no-shadow --colors --title " TDE Build " --yesno \ +"\n +Select \Zr\Z4\ZbNew\Zn if: +\n +This is a new build - OR +\n +Additional packages are being built +\n + 'New' will delete any previous build list. +\n\n +Selecting \Z1R\Zb\Z0e-use\Zn avoids having to create the build list again when re-running the build for any SlackBuilds that failed." \ +13 75 +[[ $(echo $?) == 0 ]] && rm $TMPVARS/TDEbuilds 2> /dev/null +[[ $(echo $?) == 1 ]] && echo no > $TMPVARS/build-new + +build_core() +{ +# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Copyright 2014 Willy Sudiarto Raharjo +# All rights reserved. +# +# Copyright 2015-2016 Thorn Inurcide +# +# 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. + +# These need to be set here: +export INST=1 +TMP=${TMP:-/tmp} +ROOT=$(pwd) + + +################################################### + +# set the shell variables needed for the build +# + +run_dialog() +{ +rm -f $TMPVARS/INSTALL_TDE +dialog --nocancel --no-shadow --colors --title " TDE Installation Directory " --inputbox \ +"\n +Set the directory that TDE is to be installed in. +\n\n" \ +10 75 /opt/trinity \ +2> $TMPVARS/INSTALL_TDE + + +rm -f $TMPVARS/TDE_MIRROR +dialog --nocancel --no-shadow --colors --title " TDE Source Mirror Site " --menu \ +"\n +Source archives can be pre-downloaded and placed in the 'src' directory or downloaded as required during the build from a TDE mirror. +\n +The mirror will only be used if the source is not available in 'src'. +\n\n +[Non-TDE apps are included in \Zb\Z3TDE Packages Selection\Zn options under +\n + Misc and can also be downloaded during the build from their own +\n + source URLs which are embedded in the SlackBuild script.] +\n\n +This list of mirrors, which could change, is @ +\n + https://www.trinitydesktop.org/mirrorstatus.php +\n\n" \ +23 75 5 \ +"tde-mirror.yosemite.net/trinity" "USA" \ +"mirrorservice.org/sites/trinitydesktop.org/trinity" "UK" \ +"mirror.ntmm.org/trinity" "Sweden" \ +"bg1.mirror.trinitydesktop.org/trinity" "Bulgaria" \ +"ftp.fau.de/trinity" "Germany" \ +2> $TMPVARS/TDE_MIRROR + + +rm -f $TMPVARS/NUMJOBS +dialog --nocancel --no-shadow --colors --title " Parallel Build " --inputbox \ +"\n +Set the number of simultaneous jobs for make to whatever your system will support. +\n\n" \ +11 75 -j6 \ +2> $TMPVARS/NUMJOBS + + +rm -f $TMPVARS/I18N +dialog --nocancel --no-shadow --colors --title " Select Additional Languages " --inputbox \ +"\n + Additional language support +\n\n + This is the complete list for tde-i18n - and will also apply for other packages. +\n + Other package sources may not have support for all these additional languages, but they will be included in the build for that package when the translations are included in the source. +\n + If any other translation is included in the package source, it can be added here but won't be supported by TDE. +\n\n + Multiple selections may be made - space separated. +\n\n + Build language packages/support for any of: +\n +\Zb\Z6af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW\Zn +\n\n" \ +26 75 \ +2> $TMPVARS/I18N + + +rm -f $TMPVARS/TQT_DOCS +dialog --no-shadow --colors --defaultno --title " TQt html Documentation " --yesno \ +"\n +TQt html documentation is ~21M. +\n\n +Include it in the package? +\n\n" \ +9 75 +[[ $(echo $?) == 0 ]] && echo yes > $TMPVARS/TQT_DOCS +[[ $(echo $?) == 1 ]] && echo no > $TMPVARS/TQT_DOCS + + +rm -f $TMPVARS/EXIT_FAIL +dialog --defaultno --yes-label "Continue" --no-label "Stop" --no-shadow --colors --title " Action on failure " --yesno \ +"\n +Do you want the build to \Zr\Z4\ZbStop\Zn at a failure or \Z1C\Zb\Z0ontinue\Zn to the next SlackBuild? +\n\n +Build logs are $TMP/'program'-build-log, and configure/cmake error logs will be in $TMP/build/tmp-'program'. +\n\n +A practical build method could be: +\n\n + 1] build the \Zb\Zr\Z4R\Znequired packages with the \Zr\Z4\ZbStop\Zn option - if any SlackBuild fails, the temporary files for that build will be kept and the problem can be identified and the build restarted. +\n +Any problems with the build environment will also become apparent here. +\n\n + 2] then build other packages with the \Z1C\Zb\Z0ontinue\Zn option which deletes the temporary build files while the successful package builds are completing. +\n +Any failures here are likely to be related to dependencies not found. +\n\n + 3] re-run the build for the failed programs from [2] by re-using the build list and with the \Zr\Z4\ZbStop\Zn option ... +\n " \ +26 75 +[[ $(echo $?) == 0 ]] && 2> $TMPVARS/EXIT_FAIL +[[ $(echo $?) == 1 ]] && echo "exit 1" > $TMPVARS/EXIT_FAIL + + +rm -f $TMPVARS/KEEP_BUILD +dialog --no-shadow --colors --defaultno --title " Temporary Build Files " --yesno \ +"\n +'tmp' & 'package' files from a previous package build are removed at the start of building the next package to keep the build area clear. +\n\n +If following the build method on the previous screen, the answer here should probably be \Zr\Z4\ZbNo\Zn. +\n\n +Keep \ZuALL\ZU the temporary files, including for successfully built packages?" \ +14 75 +[[ $(echo $?) == 0 ]] && echo yes > $TMPVARS/KEEP_BUILD +[[ $(echo $?) == 1 ]] && echo no > $TMPVARS/KEEP_BUILD + + +rm -f $TMPVARS/SELECT +dialog --no-shadow --colors --defaultno --title " Required dependencies " --yesno \ +"\n +Pre-select TDE core modules and required dependencies for the build list? +\n\n +Select \Zr\Zb\Z4No\Zn here if they have already been built and installed and you are building additional packages. +\n\n" \ +11 75 +[[ $(echo $?) == 0 ]] && echo on > $TMPVARS/SELECT +[[ $(echo $?) == 1 ]] && echo off > $TMPVARS/SELECT +export SELECT=$(cat $TMPVARS/SELECT) + + +rm -f $TMPVARS/TDEbuilds +dialog --nocancel --no-shadow --colors --title " TDE Packages Selection " --item-help --checklist \ +"\n +Required builds for a basic working TDE are marked \Zb\Zr\Z4R\Zn. +\n\n +The packages selected form the build list and so dependencies are listed before the packages that need them. +\n\n +Look out for messages in the bottom line of the screen, especially relating to dependencies. +\n\n +Non-TDE apps are in the Misc category and don't need the \Zb\Zr\Z4R\Znequired TDE packages." \ +35 95 19 \ +"Deps/tqt3" "\Zb\Zr\Z4R\Zn The Qt package for TDE" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/tqtinterface" "\Zb\Zr\Z4R\Zn TDE bindings to tqt3." ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/arts" "\Zb\Zr\Z4R\Zn Sound server for TDE" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/dbus-tqt" "\Zb\Zr\Z4R\Zn A simple IPC library" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/dbus-1-tqt" "\Zb\Zr\Z4R\Zn D-Bus bindings" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/libart_lgpl" "\Zb\Zr\Z4R\Zn The LGPL'd component of libart" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Deps/tqca-tls" "\Zb\Zr\Z4R\Zn Plugin to provide SSL/TLS capability" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Core/tdelibs" "\Zb\Zr\Z4R\Zn TDE libraries" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Core/tdebase" "\Zb\Zr\Z4R\Zn TDE base" ${SELECT:-off} "\Zb\Z6 \Zn" \ +"Core/tdeutils" "Collection of utilities including ark" off "\Zb\Z6 \Zn" \ +"Core/tdemultimedia" "Multimedia packages for TDE" off "\Zb\Z6 \Zn" \ +"Core/tdeartwork" "Extra artwork/themes/wallpapers for TDE" off "\Zb\Z6 \Zn" \ +"Core/tdegraphics" "Misc graphics apps" off "\Zb\Z6 \Zn" \ +"Core/tdeaddons" "Additional plugins and scripts" off "\Zb\Z6 \Zn" \ +"Core/tdegames" "Games for TDE - atlantik, kasteroids, katomic, etc." off "\Zb\Z6 \Zn" \ +"Core/tdepim" "Personal Information Management" off "\Zb\Z6 \Zn" \ +"Core/tdesdk" "Tools used by TDE developers" off "\Zb\Z6 Requires tdepim \Zn" \ +"Core/tdevelop" "TDE development programs" off "\Zb\Z6 Requires tdesdk \Zn" \ +"Core/tdetoys" "TDE Amusements" off "\Zb\Z6 \Zn" \ +"Core/tdewebdev" "Quanta Plus and other applications" off "\Zb\Z6 \Zn" \ +" Misc/speex" "Audio compression format designed for speech" off "\Zb\Z6 Requires l/speexdsp \Zn" \ +"Core/tdenetwork" "Networking applications for TDE" off "\Zb\Z6 Optional dependency - speex \Zn" \ +"Core/tde-i18n" "Additional language support for TDE" off "\Zb\Z6 Required when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \ +"Libs/libkdcraw" "Decode RAW picture files" off "\Zb\Z6 Required for digikam, gwenview and ksquirrel \Zn" \ +"Libs/libkexiv2" "Library to manipulate picture metadata" off "\Zb\Z6 Required for digikam, gwenview and ksquirrel. Needs l/exiv2... \Zn" \ +"Libs/libkipi" "A common plugin structure" off "\Zb\Z6 Required for digikam, gwenview and ksquirrel \Zn" \ +"Libs/kipi-plugins" "Additional functions for digiKam, ksquirrel and gwenview" off "\Zb\Z6 Required for digikam, gwenview and ksquirrel. Requires libkdcraw libkexiv2 libkipi. \Zn" \ +"Libs/libksquirrel" "A set of image codecs for KSquirrel" off "\Zb\Z6 Required for ksquirrel \Zn" \ +"Apps/digikam" "A digital photo management application + Showfoto viewer" off "\Zb\Z6 Requires kipi-plugins libkdcraw libkexiv2 libkipi. \Zn" \ +"Apps/ksquirrel" "An image viewer with OpenGL and KIPI support." off "\Zb\Z6 Requires kipi-plugins libkdcraw libkexiv2 libkipi libksquirrel. \Zn" \ +"Apps/gwenview" "An image viewer" off "\Zb\Z6 Requires kipi-plugins libkdcraw libkexiv2 libkipi. \Zn" \ +"Apps/gwenview-i18n" "Internationalization files for gwenview." off "\Zb\Z6 Required for gwenview when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \ +" Misc/mp4v2" "Create and modify mp4 files" off "\Zb\Z6 \Zn" \ +"Apps/amarok" "A Music Player" off "\Zb\Z6 Optional dependencies - mp4v2, speex \Zn" \ +"Apps/k3b" "The CD Creator" off "\Zb\Z6 \Zn" \ +"Apps/k3b-i18n" "Internationalization files for k3b." off "\Zb\Z6 Required for k3b when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \ +"Apps/k9copy" "A DVD backup utility" off "\Zb\Z6 Requires k3b \Zn" \ +"Apps/knemo" "The TDE Network Monitor" off "\Zb\Z6 \Zn" \ +"Apps/knights" "A graphical chess interface" off "\Zb\Z6 \Zn" \ +"Apps/dolphin" "Dolphin file manager for TDE" off "\Zb\Z6 \Zn" \ +"Apps/gtk-qt-engine" "A GTK+2 theme engine" off "\Zb\Z6 \Zn" \ +"Apps/gtk3-tqt-engine" "A GTK+3 theme engine" off "\Zb\Z6 \Zn" \ +"Apps/kbookreader" "Twin-panel text files viewer esp. for reading e-books." off "\Zb\Z6 \Zn" \ +"Apps/tde-style-qtcurve" "QtCurve theme" off "\Zb\Z6 \Zn" \ +"Apps/tdeio-locate" "TDE frontend for the locate command" off "\Zb\Z6 \Zn" \ +"Apps/kile" "A TEX and LATEX source editor and shell" off "\Zb\Z6 \Zn" \ +" Misc/potrace" "For tracing bitmaps to a vector graphics format" off "\Zb\Z6 Required for potracegui \Zn" \ +"Apps/potracegui" "A GUI for potrace" off "\Zb\Z6 Requires potrace \Zn" \ +" Misc/GraphicsMagick" "Swiss army knife of image processing" off "\Zb\Z6 \Zn" \ +" Misc/tidy-html5" "Corrects and cleans up HTML and XML documents" off "\Zb\Z6 Optional for Quanta+ [tdewebdev] \Zn" \ +" Misc/inkscape" "SVG editor" off "\Zb\Z6 Requires lxml if online help facility is required. \Zn" \ +" Misc/lxml" "Python bindings for libxml2 and libxslt" off "\Zb\Z6 Required to use Inkscape online help \Zn" \ +2> $TMPVARS/TDEbuilds +# successful builds are removed from the TDEbuilds list by '$dir ' so add a space to the last entry +# and the " needs to be removed because the Misc entries are double-quoted +sed -i -e 's|$| |' -e 's|"||g' $TMPVARS/TDEbuilds +} + +[[ ! -e $TMPVARS/TDEbuilds ]] && run_dialog + + +# option to change to stop the build when it fails +if [[ $(cat $TMPVARS/build-new) == no ]] ; then +if [[ $(cat $TMPVARS/EXIT_FAIL) == "" ]] ; then +if [[ $(cat $TMPVARS/KEEP_BUILD) == no ]] ; then +dialog --defaultno --yes-label "Continue" --no-label "Stop" --no-shadow --colors --title " Action on failure - 2 " --yesno \ +"\n +You have chosen to re-use the TDE build list, which now contains only those programs that failed to build. +\n\n +But this script is set to Continue in the event of a failure, which will delete all but the last build record. Each failure should now be investigated which requires that the build be stopped when it fails. +\n\n +Do you still want the build to \Z1C\Zb\Z0ontinue\Zn at a failure +\n + or change to \Zr\Z4\ZbStop\Zn ? +\n " \ +15 75 +[[ $(echo $?) == 1 ]] && echo "exit 1" > $TMPVARS/EXIT_FAIL +fi;fi;fi + + +dialog --yes-label "Start" --no-label "Abort" --no-shadow --defaultno --colors --title " Start TDE Build " --yesno \ +"\n +Setup is complete. +\n\n + \Z1S\Zb\Z0tart\Zn building the packages or \Zr\Z4\ZbAbort\Zn" \ +9 75 +[[ $(echo $?) == 1 ]] && echo && echo && echo "Build aborted" && echo && exit 1 +echo + +###################### +# there should be no need to make any changes below + +export INSTALL_TDE=$(cat $TMPVARS/INSTALL_TDE) +export TDE_MIRROR=$(cat $TMPVARS/TDE_MIRROR) +export NUMJOBS=$(cat $TMPVARS/NUMJOBS) +export I18N=$(cat $TMPVARS/I18N) +export TQT_DOCS=$(cat $TMPVARS/TQT_DOCS) +export EXIT_FAIL=$(cat $TMPVARS/EXIT_FAIL) +export KEEP_BUILD=$(cat $TMPVARS/KEEP_BUILD) + +LIBDIRSUFFIX="" +# Is this a 64 bit system? +# 'uname -m' won't identify a 32 bit system with a 64 bit kernel +[[ -d /lib64 ]] && LIBDIRSUFFIX="64" + +TQTDIR=$INSTALL_TDE/lib$LIBDIRSUFFIX/tqt3 + +CPLUS_INCLUDE_PATH=$TQTDIR/include:${CPLUS_INCLUDE_PATH:-} + +PKG_CONFIG_PATH=$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig:${PKG_CONFIG_PATH:-} + +PATH=$TQTDIR/bin:$INSTALL_TDE/bin:$PATH + +# needed for CMAKE_C_FLAGS +# and used for CFLAGS instead of 'configure --with-qt-includes=' option which doesn't always work +TQT_INCLUDE_PATH="-I$TQTDIR/include" + +export LIBDIRSUFFIX +export TQTDIR +export CPLUS_INCLUDE_PATH +export PKG_CONFIG_PATH +export PATH +export TQT_INCLUDE_PATH + +###################################################### +# package(s) build starts here + +# Loop for all packages +for dir in $(cat $TMPVARS/TDEbuilds) +do + { [[ $dir == Deps* ]] && export TDEMIR_SUBDIR="/dependencies"; } \ +|| { [[ $dir == Core* ]] && export TDEMIR_SUBDIR=""; } \ +|| { [[ $dir == Libs* ]] && export TDEMIR_SUBDIR="/libraries"; } \ +|| { [[ $dir == Apps* ]] && export TDEMIR_SUBDIR="/applications"; } + + # Get the package name + package=$(echo $dir | cut -f2- -d /) + + # Change to package directory + cd $ROOT/$dir || ${EXIT_FAIL:-"true"} + + # Get the version + version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev) + + # Get the build + build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev) + + # The real build starts here + script -c "sh ${package}.SlackBuild" $TMP/${package}-build-log || ${EXIT_FAIL:-"true"} +# remove colorizing escape sequences from build-log +# Re: http://serverfault.com/questions/71285/in-centos-4-4-how-can-i-strip-escape-sequences-from-a-text-file + sed -ri "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" $TMP/${package}-build-log || ${EXIT_FAIL:-"true"} + +# tde-i18n package installation is handled in tde-i18n.SlackBuild because if more than one i18n package is being built, only the last one will be installed by upgradepkg +if [[ $INST == 1 ]] +then +[[ ${package} != tde-i18n ]] && upgradepkg --install-new --reinstall $TMP/${package}-${version}-*-${build}*.txz +if [[ $(ls /var/log/packages/${package}-*${version}-*-${build}*) ]] +then +sed -i "s|$dir ||" $TMPVARS/TDEbuilds +else +echo " + Error: ${package} package build failed + Check the build log $TMP/${package}-build-log + " +${EXIT_FAIL:-":"} +fi;fi + + # back to original directory + cd $ROOT +done +} + +build_core || ${EXIT_FAIL:-"true"} + diff --git a/Core/BUILD-ORDER b/Core/BUILD-ORDER deleted file mode 100644 index ad56f84..0000000 --- a/Core/BUILD-ORDER +++ /dev/null @@ -1,13 +0,0 @@ -1. tdelibs -2. tdebase -3. tdeutils -4. tdemultimedia -5. tdenetwork -6. tdeartwork -7. tdetoys -8. tdegraphics -9. tdepim -10. tdesdk -11. tdevelop -12. tdeaddons -13. tdewebdev diff --git a/Core/README.md b/Core/README.md deleted file mode 100644 index fce4c4a..0000000 --- a/Core/README.md +++ /dev/null @@ -1,3 +0,0 @@ -I have included tdewebdev, though it doesn't have full functionality.If you run the build-core script, -it will not be built, you have to enter the source and build it. not all the deps are being built by cmake -and preventing a lot of features from working, I wouldn't even waste your time on it right now. diff --git a/Apps/tde-i18n/README.md b/Core/tde-i18n/README old mode 100644 new mode 100755 similarity index 94% rename from Apps/tde-i18n/README.md rename to Core/tde-i18n/README index 5d2b2ff..dac5a96 --- a/Apps/tde-i18n/README.md +++ b/Core/tde-i18n/README @@ -1,7 +1,7 @@ The source unpacked is ~950MB, so to save on build space, this SlackBuild script extracts, builds, and removes source for each language package one at a time. -Any number of packages can be built - set by the CHOICE variable +Any number of packages can be built - set by the I18N variable Languages are identified as: diff --git a/Apps/tde-i18n/tde-i18n.SlackBuild b/Core/tde-i18n/tde-i18n.SlackBuild old mode 100644 new mode 100755 similarity index 51% rename from Apps/tde-i18n/tde-i18n.SlackBuild rename to Core/tde-i18n/tde-i18n.SlackBuild index bf8cbc6..fc4a6d7 --- a/Apps/tde-i18n/tde-i18n.SlackBuild +++ b/Core/tde-i18n/tde-i18n.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,19 +26,6 @@ PRGNAM=tde-i18n VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:-" -j10 "} - -Options() -{ -# build language packages for any of: -# af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW -# -CHOICE="de es fr it" -return -} - - SlackDesc() { echo " @@ -64,114 +51,25 @@ ${PRGNAM}-$lang: " > $PKG/install/slack-desc } -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-${PRGNAM} -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-${PRGNAM} -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-${PRGNAM}/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-${PRGNAM}.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi - -Options +source ../../get-source.sh ## the source unpacked is ~950MB, so to save on build space ## extract, build, and remove source for each language package one at a time cd $TMP/tmp-${PRGNAM} -echo "Extracting the source archive(s) for ${PRGNAM}..." -tar xvf ${SOURCE} ${PRGNAM}/cmake -echo $CHOICE | sed 's| |\n|g' | while read lang +# extract the cmake source once only +echo -e "\033[39;1m" +echo "Extracting the cmake source from the ${PRGNAM} archive ..." +echo -e "\033[0m" +tar xf ${SOURCE} ${PRGNAM}/cmake + +for lang in $I18N do -tar xvf ${SOURCE} ${PRGNAM}/${PRGNAM}-$lang +# extract the source for one language at a time for each iteration of the loop +echo -e "\033[39;1m" +echo "Extracting the ${PRGNAM}-$lang source from the ${PRGNAM} archive ..." +echo -e "\033[0m" +tar -xf ${SOURCE} ${PRGNAM}/${PRGNAM}-$lang cd ${PRGNAM} @@ -185,13 +83,15 @@ cd ${PRGNAM}-$lang/build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DBUILD_ALL="ON" \ .. - make ${NUMJOBS:-} || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -212,11 +112,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/${PRGNAM}-$VERSION -#cp -a $DOCS $PKG/usr/doc/${PRGNAM}-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/${PRGNAM}-$VERSION/${PRGNAM}-${lang}.SlackBuild -chown -R root:root $PKG/usr/doc/${PRGNAM}-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG/${INSTALL_TDE}/doc/${PRGNAM}-$VERSION +#cp -a $DOCS $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION/${PRGNAM}-${lang}.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -243,4 +143,11 @@ rm -rf $PKG/* cd $TMP/tmp-${PRGNAM} rm -rf ${PRGNAM}/${PRGNAM}-${lang} -done +# Install i18n package(s) here because if more than one language pack is built, +# upgradepkg [in BUILD-TDE.sh] can't process them in one command and the build will exit +if [ $INST == 1 ] +then +upgradepkg --install-new --reinstall $OUTPUT/${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz} +fi + +done \ No newline at end of file diff --git a/Core/tdeaddons/arkplugin-diffs-1 b/Core/tdeaddons/arkplugin-diffs-1 old mode 100644 new mode 100755 diff --git a/Core/tdeaddons/slack-desc b/Core/tdeaddons/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdeaddons/tdeaddons.SlackBuild b/Core/tdeaddons/tdeaddons.SlackBuild index d8a9155..c13d27e 100755 --- a/Core/tdeaddons/tdeaddons.SlackBuild +++ b/Core/tdeaddons/tdeaddons.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -29,109 +29,17 @@ TAG=${TAG:-_tde} DOCS="COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} +# patch for TDE bug 2043 patch -p0 < $SRCDIR/arkplugin-diffs-1 + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . @@ -143,15 +51,18 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_ALL_OPTIONS="ON" \ -DBUILD_ALL="ON" \ -DBUILD_ATLANTIKDESIGNER="OFF" \ -DBUILD_NOATUN_PLUGINS="OFF" \ + -DBUILD_KADDRESSBOOK_PLUGINS="OFF" \ -Wno-dev \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -177,11 +88,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdeartwork/slack-desc b/Core/tdeartwork/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdeartwork/tdeartwork.SlackBuild b/Core/tdeartwork/tdeartwork.SlackBuild index e2632e8..e72b30a 100755 --- a/Core/tdeartwork/tdeartwork.SlackBuild +++ b/Core/tdeartwork/tdeartwork.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -25,117 +25,16 @@ PRGNAM=tdeartwork VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -150,9 +49,12 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_ARTS="ON" \ + -DWITH_XSCREENSAVER="OFF" \ -DBUILD_ALL="ON" \ -Wno-dev \ .. @@ -182,11 +84,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdebase/README b/Core/tdebase/README old mode 100644 new mode 100755 index e86aa55..06091a7 --- a/Core/tdebase/README +++ b/Core/tdebase/README @@ -4,3 +4,25 @@ Add this to /etc/rc.d/rc.4 to start tdm if [ -x /usr/bin/tdm ]; then exec /usr/bin/tdm -nodaemon fi + +-------------------- + +Konqueror file manager as-built defaults to 'Icon View' when starting. +Setting 'Tree View' and saving that view profile should then default +to 'Tree View' when starting kfm or opening it in a new tab - the former +works but not the latter. + +The problem seems to be that TDE lacks the entry in konquerorrc that exists in KDE3: +[MainView Settings] +ToggableViewsShown=konq_sidebartng +ViewMode=konq_treeview + +Until this is sorted out in the source code, this hack works: + +1] Start kfm to generate the ~/.trinity/share/config/konquerorrc file. + +2] Close kfm + +3] echo -e "\n\n[MainView Settings]\nViewMode=konq_treeview" >> ~/.trinity/share/config/konquerorrc + +That's it. diff --git a/Core/tdebase/config/Xsession b/Core/tdebase/config/Xsession old mode 100644 new mode 100755 index 0e70079..3134278 --- a/Core/tdebase/config/Xsession +++ b/Core/tdebase/config/Xsession @@ -78,7 +78,7 @@ case $session in exec $HOME/.xsession ;; default) - exec /usr/bin/startkde + exec ${INSTALL_TDE}/bin/starttde ;; *) eval exec "$session" diff --git a/Core/tdebase/config/backgroundrc b/Core/tdebase/config/backgroundrc old mode 100644 new mode 100755 diff --git a/Core/tdebase/doinst.sh b/Core/tdebase/doinst.sh old mode 100644 new mode 100755 index 7224ccc..6d7bd3d --- a/Core/tdebase/doinst.sh +++ b/Core/tdebase/doinst.sh @@ -11,7 +11,7 @@ elif [ ! -e etc/X11/tdm ]; then ( cd etc/X11 ; ln -sf /etc/tde/tdm tdm ) fi -#!/bin/sh + config() { NEW="$1" OLD="`dirname $NEW`/`basename $NEW .new`" @@ -42,3 +42,31 @@ fi if [ -x usr/bin/update-mime-database ]; then chroot . /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi + + +# update PATH +# upgradepkg runs this twice, so even though $TQTDIR/bin will be +# a new PATH, it needs to be tested for the second run +if ! grep ${INSTALL_TDE}/bin /etc/profile +then +echo "PATH=\$PATH:${INSTALL_TDE}/bin:$TQTDIR/bin" >> /etc/profile +else +if ! grep $TQTDIR/bin /etc/profile +then +echo "PATH=\$PATH:$TQTDIR/bin" >> /etc/profile +fi +fi + + +# update MANPATH +if ! grep ${INSTALL_TDE}/man /etc/profile +then +echo "export MANPATH=\$MANPATH:${INSTALL_TDE}/man" >> /etc/profile +fi + + +## you may not want to do this ## +# start a 'konsole' with system-wide profile +[[ ! $(grep -x "source /etc/profile" $HOME/.bashrc ) ]] && echo "source /etc/profile" >> $HOME/.bashrc || true +# don't want this +sed -i 's|source /etc/profile.d/mc.sh|#source /etc/profile.d/mc.sh|' $HOME/.bashrc || true diff --git a/Core/tdebase/profile.d/tde.csh b/Core/tdebase/profile.d/tde.csh old mode 100644 new mode 100755 index cfc504a..61fe011 --- a/Core/tdebase/profile.d/tde.csh +++ b/Core/tdebase/profile.d/tde.csh @@ -1,7 +1,7 @@ #!/bin/csh # TDE additions: if ( ! $?TDEDIR ) then - setenv TDEDIR /usr + setenv TDEDIR ${INSTALL_TDE} endif if ( $?XDG_CONFIG_DIRS ) then setenv XDG_CONFIG_DIRS ${XDG_CONFIG_DIRS}:/etc/tde/xdg diff --git a/Core/tdebase/profile.d/tde.sh b/Core/tdebase/profile.d/tde.sh old mode 100644 new mode 100755 index de586d6..83b6ebd --- a/Core/tdebase/profile.d/tde.sh +++ b/Core/tdebase/profile.d/tde.sh @@ -1,10 +1,10 @@ #!/bin/sh # TDE additions: -TDEDIR=/usr +TDEDIR=${INSTALL_TDE} export TDEDIR if [ ! "$XDG_CONFIG_DIRS" = "" ]; then XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/tde/xdg else XDG_CONFIG_DIRS=/etc/xdg:/etc/tde/xdg fi -export XDG_CONFIG_DIRS +export XDG_CONFIG_DIRS diff --git a/Core/tdebase/slack-desc b/Core/tdebase/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdebase/tdebase.SlackBuild b/Core/tdebase/tdebase.SlackBuild index 2d543ef..7049c12 100755 --- a/Core/tdebase/tdebase.SlackBuild +++ b/Core/tdebase/tdebase.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -27,132 +27,34 @@ PRGNAM=tdebase VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + cd ${PRGNAM} + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . mkdir -p build-${PRGNAM} cd build-${PRGNAM} + cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMAN_INSTALL_DIR=/usr/man \ - -DSYSCONF_INSTALL_DIR=/etc \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_OPENEXR="ON" \ -DWITH_XCOMPOSITE="ON" \ @@ -165,16 +67,17 @@ cd build-${PRGNAM} -DWITH_XRANDR="ON" \ -DWITH_XRENDER="ON" \ -DWITH_OPENGL="ON" \ - -DWITH_XSCREENSAVER="ON" \ + -DWITH_XSCREENSAVER="OFF" \ -DWITH_XTEST="ON" \ -DWITH_LIBART="ON" \ - -DWITH_LIBUSB="ON" \ + -DWITH_LIBUSB="OFF" \ -DWITH_XDMCP="ON" \ - -DWITH_XINERAMA="ON" \ + -DWITH_XINERAMA="OFF" \ -DWITH_ARTS="ON" \ -DWITH_TDEHWLIB="ON" \ -DWITH_UPOWER="ON" \ -DWITH_PCRE="ON" \ + -DWITH_ASPELL="OFF" \ -DBUILD_ALL="ON" \ -Wno-dev \ .. @@ -182,44 +85,47 @@ cd build-${PRGNAM} make DESTDIR=$PKG install || exit 1 cd - -# Move the TDM files someplace FHS compliant: -mkdir -p $PKG/etc/tde -mv $PKG/usr/share/config/tdm $PKG/etc/tde -( cd $PKG/usr/share/config ; ln -sf ../../../etc/tde/tdm . ) - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Add xinitrc: mkdir -p $PKG/etc/X11/xinit -cat $SRCDIR/xinitrc.tde > $PKG/etc/X11/xinit/xinitrc.tde +sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/xinitrc.tde > $PKG/etc/X11/xinit/xinitrc.tde chmod 755 $PKG/etc/X11/xinit/xinitrc.tde +(cd $PKG/etc/X11/xinit/ +ln -sf xinitrc.tde xinitrc) mkdir -p $PKG/etc/profile.d -cat $SRCDIR/profile.d/tde.sh > $PKG/etc/profile.d/tde.sh -cat $SRCDIR/profile.d/tde.csh > $PKG/etc/profile.d/tde.csh -chmod 755 $PKG/etc/profile.d/tde.sh $PKG/etc/profile.d/tde.csh +sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/profile.d/tde.sh > $PKG/etc/profile.d/tde.sh +sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/profile.d/tde.csh > $PKG/etc/profile.d/tde.csh +chmod 755 $PKG/etc/profile.d/tde.{,c}sh # Setup config files for TDM: -$PKG/usr/bin/gentdmconf --no-old --no-old-scripts --no-backup --in $PKG/usr/share/config/tdm +$PKG${INSTALL_TDE}/bin/gentdmconf --no-old --no-old-scripts --no-backup --in $PKG${INSTALL_TDE}/share/config/tdm # Not allowing root to login at the console is just plain silly. If they have physical access to # the machine, what's the point of trying to stop this? Even the tdmrc file says this is supposed # to be the default. -cat $PKG/usr/share/config/tdm/tdmrc | perl -pi -e 's|AllowRootLogin=false|AllowRootLogin=true|' > $PKG/usr/share/config/tdm/tdmrc.new -rm -f $PKG/usr/share/config/tdm/tdmrc -cp -a $PKG/usr/share/config/tdm/Xsession $PKG/usr/share/config/tdm/Xsession.orig -cat $SRCDIR/config/Xsession > $PKG/usr/share/config/tdm/Xsession -mv $PKG/usr/share/config/tdm/backgroundrc $PKG/usr/share/config/tdm/backgroundrc.new +cat $PKG${INSTALL_TDE}/share/config/tdm/tdmrc | perl -pi -e 's|AllowRootLogin=false|AllowRootLogin=true|' > $PKG${INSTALL_TDE}/share/config/tdm/tdmrc.new +rm -f $PKG${INSTALL_TDE}/share/config/tdm/tdmrc + +cp -a $PKG${INSTALL_TDE}/share/config/tdm/Xsession $PKG${INSTALL_TDE}/share/config/tdm/Xsession.orig +sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/config/Xsession > $PKG${INSTALL_TDE}/share/config/tdm/Xsession +mv $PKG${INSTALL_TDE}/share/config/tdm/backgroundrc $PKG${INSTALL_TDE}/share/config/tdm/backgroundrc.new + +# Move the TDM files someplace FHS compliant: +mkdir -p $PKG/etc/tde +mv $PKG${INSTALL_TDE}/share/config/tdm $PKG/etc/tde +( cd $PKG${INSTALL_TDE}/share/config ; ln -sf ../../../etc/tde/tdm . ) mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc -cat $SRCDIR/doinst.sh > $PKG/install/doinst.sh +sed -e "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" -e "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/doinst.sh > $PKG/install/doinst.sh cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} diff --git a/Core/tdebase/xinitrc.tde b/Core/tdebase/xinitrc.tde index 397f8d6..814e60d 100755 --- a/Core/tdebase/xinitrc.tde +++ b/Core/tdebase/xinitrc.tde @@ -22,8 +22,8 @@ if [ -f $usermodmap ]; then fi if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then - exec ck-launch-session dbus-launch --exit-with-session /usr/bin/starttde + exec ck-launch-session dbus-launch --exit-with-session ${INSTALL_TDE}/bin/starttde else - exec dbus-launch --exit-with-session /usr/bin/starttde + exec dbus-launch --exit-with-session ${INSTALL_TDE}/bin/starttde fi diff --git a/Apps/tdegames/tdegames-R14.0.3.SlackBuild b/Core/tdegames/tdegames.SlackBuild old mode 100644 new mode 100755 similarity index 54% rename from Apps/tdegames/tdegames-R14.0.3.SlackBuild rename to Core/tdegames/tdegames.SlackBuild index ea45ae6..6d9643e --- a/Apps/tdegames/tdegames-R14.0.3.SlackBuild +++ b/Core/tdegames/tdegames.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,16 +26,10 @@ PRGNAM=tdegames VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_tde} -PREFIX=/usr Options() { -## Edit or comment out as required -# Set the number of parallel jobs [-jn] to whatever your system will support -NUMJOBS=${NUMJOBS:--j} -# let configure find the tqt3 directories -QTDIR="" # if tdemultimedia has been built with cmake, only kmix has been built and without libartsmodules # - in that case, remove it's requirement for kolf. [[ ! $(grep -h libartsmodules.so /var/log/packages/tdemultimedia-* 2>/dev/null) ]] && sed -i 's| -lartsmodules||' kolf/Makefile.am @@ -90,107 +84,12 @@ tdegames: DOCS="AUTHORS ChangeLog* COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -# Input URL: http://tde-mirror.yosemite.net/trinity/releases/R14.0.3/tdegames-R14.0.3.tar.bz2 -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -tar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} Options @@ -209,27 +108,27 @@ cd build-${PRGNAM} # Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ ../configure \ - --prefix=${PREFIX} \ + --prefix=${INSTALL_TDE} \ --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ + --mandir=${INSTALL_TDE}/man \ --disable-rpath \ --enable-closure ChooseGames - make ${NUMJOBS:-} || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdegraphics/slack-desc b/Core/tdegraphics/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdegraphics/tdegraphics.SlackBuild b/Core/tdegraphics/tdegraphics.SlackBuild index 8e5dab0..b56ff55 100755 --- a/Core/tdegraphics/tdegraphics.SlackBuild +++ b/Core/tdegraphics/tdegraphics.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -25,118 +25,16 @@ PRGNAM=tdegraphics VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -146,7 +44,10 @@ chmod -R u+w,go+r-w,a+rX-st . # Optional deps have been turned off as they mainly affect tdefile plugins which wont even build. # Kpdf has been turned off because I've yet to even get it to open anything. If you want to try any # of them feel free to turn the switches to "ON" -# Kuickshow requires imlib, which will not build on Slackware current. I suppose you could try it on stable though +# Kuickshow requires imlib, which will not build on Slackware current/14.2.The patched SBo build +# produces compiler errors. +# If imlib is installed, include Kuickshow: +[[ $(ls /var/log/packages/imlib-*) ]] && KUICKSHOW=ON mkdir -p build-${PRGNAM} cd build-${PRGNAM} cmake \ @@ -154,17 +55,22 @@ cd build-${PRGNAM} -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSYSCONF_INSTALL_DIR=/etc \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_T1LIB="OFF" \ -DWITH_TIFF="OFF" \ -DWITH_OPENEXR="OFF" \ -DWITH_PDF="OFF" \ -DBUILD_ALL="ON" \ - -DBUILD_TDEFILE_PLUGINS="OFF" \ - -DBUILD_KUICKSHOW="OFF" \ - -DBUILD_KPDF="OFF" \ + -DBUILD_TDEFILE_PLUGINS="ON" \ + -DBUILD_KUICKSHOW=${KUICKSHOW:-OFF} \ + -DBUILD_KPDF="ON" \ + -DBUILD_KAMERA="OFF" \ + -DBUILD_KSVG="OFF" \ + -DBUILD_LIBKSCAN="OFF" \ + -DBUILD_KOOKA="OFF" \ -Wno-dev \ .. make $NUMJOBS || exit 1 @@ -188,11 +94,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -201,7 +107,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 cd - diff --git a/Core/tdelibs/slack-desc b/Core/tdelibs/slack-desc old mode 100644 new mode 100755 index afd7d14..789a2c9 --- a/Core/tdelibs/slack-desc +++ b/Core/tdelibs/slack-desc @@ -8,7 +8,7 @@ |-----handy-ruler------------------------------------------------------| tdelibs: tdelibs (TDE libraries) tdelibs: -tdelibs: This is version R14.0.2 of the Trinity Desktop Environment [TDE] +tdelibs: This is version R14.0.3 of the Trinity Desktop Environment [TDE] tdelibs: libraries. This package includes libraries that are central tdelibs: to the development and execution of a KDE program, as well tdelibs: as internationalization files for these libraries, misc HTML diff --git a/Core/tdelibs/tdelibs.SlackBuild b/Core/tdelibs/tdelibs.SlackBuild index 7d7bc5f..4bdf264 100755 --- a/Core/tdelibs/tdelibs.SlackBuild +++ b/Core/tdelibs/tdelibs.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -25,111 +25,16 @@ PRGNAM=tdelibs VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS COPYING* README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -# Place to build (TMP) package (PKG) and output (OUTPUT) the program: -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} chown -R root:root . @@ -137,20 +42,22 @@ chmod -R u+w,go+r-w,a+rX-st . mkdir -p build-${PRGNAM} cd build-${PRGNAM} + cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSYSCONF_INSTALL_DIR=/etc \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_SKIP_RPATH="OFF" \ -DWITH_CUPS="ON" \ -DWITH_SUDO_TDESU_BACKEND="ON" \ -DWITH_NETWORK_MANAGER_BACKEND="ON" \ - -DWITH_ASPELL="ON" \ + -DWITH_ASPELL="OFF" \ -DWITH_AVAHI="OFF" \ -DWITH_LIBART="ON" \ -DWITH_OPENEXR="ON" \ @@ -164,6 +71,7 @@ cd build-${PRGNAM} -DWITH_KDE4_MENU_SUFFIX="ON" \ -Wno-dev \ .. + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -190,11 +98,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdemultimedia/slack-desc b/Core/tdemultimedia/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdemultimedia/tdemultimedia.SlackBuild b/Core/tdemultimedia/tdemultimedia.SlackBuild index 447c2d1..7efdbf1 100755 --- a/Core/tdemultimedia/tdemultimedia.SlackBuild +++ b/Core/tdemultimedia/tdemultimedia.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,131 +26,22 @@ PRGNAM=tdemultimedia VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-2} TAG=${TAG:-_tde} -PREFIX="/usr" -# Set the number of parallel jobs [-jn] to whatever your system will support # This is one of the builds that Trinity 'How to Build' advises may not build if greater than -j1 -NUMJOBS=${NUMJOBS:-" -j "} -# cmake only builds 'kmix' - uncomment to use automake/configure to be able to build all options -#USECMAKE="no" - -#For automake/configure build -Options() -{ -## Edit or comment out as required -# let configure find the tqt3 directories -QTDIR="" -return -} +# if so, set NUMJOBS="-j1" +NUMJOBS=$NUMJOBS +# cmake only builds 'kmix' - comment out to use cmake +# otherwise using automake/configure to be able to build all options +USECMAKE="no" DOCS="AUTHORS COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -163,12 +54,14 @@ then mkdir -p build-${PRGNAM} cd build-${PRGNAM} cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DBUILD_ALL="ON" \ .. else @@ -181,22 +74,23 @@ make -f admin/Makefile.common mkdir -p build-${PRGNAM} cd build-${PRGNAM} -Options +# change hard-coded tqt headers directory: +[[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" ../configure # Configure the package -LDFLAGS="${SLKLDFLAGS}" -CFLAGS="${SLKCFLAGS}" -CXXFLAGS="${SLKCFLAGS}" +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ ../configure \ - --prefix=${PREFIX} \ + --prefix=${INSTALL_TDE} \ --sysconfdir="/etc/trinity" \ - --mandir=${PREFIX}/man \ + --mandir=${INSTALL_TDE}/man \ --disable-rpath \ --disable-debug \ --enable-closure fi - make ${NUMJOBS:-} || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -217,11 +111,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdenetwork/README b/Core/tdenetwork/README old mode 100644 new mode 100755 diff --git a/Core/tdenetwork/slack-desc b/Core/tdenetwork/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdenetwork/tdenetwork.SlackBuild b/Core/tdenetwork/tdenetwork.SlackBuild index 597dc7b..a3cd416 100755 --- a/Core/tdenetwork/tdenetwork.SlackBuild +++ b/Core/tdenetwork/tdenetwork.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -27,133 +27,67 @@ VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_tde} -DOCS="AUTHORS COPYING* README*" - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +tdenetwork: tdenetwork (networking applications) +tdenetwork: +tdenetwork: Networking applications for TDE +tdenetwork: +tdenetwork: +tdenetwork: +tdenetwork: +tdenetwork: +tdenetwork: +tdenetwork: +tdenetwork: Home: https://www.trinitydesktop.org/index.php +" > $PKG/install/slack-desc +} + +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DWITH_SPEEX="ON" \ - -DWITH_ARTS="ON" \ - -DBUILD_KOPETE_PROTOCOL_ALL="ON" \ - -DBUILD_KOPETE_PLUGIN_ALL="ON" \ - -DBUILD_KOPETE_PROTOCOL_GADU="OFF" \ - -DBUILD_KOPETE_PROTOCOL_MEANWHILE="OFF" \ - -DBUILD_ALL="ON" \ - -Wno-dev \ - .. - make || exit 1 +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -179,17 +113,17 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/install -cat $SRCDIR/slack-desc > $PKG/install/slack-desc +SlackDesc cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} @@ -199,4 +133,5 @@ cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt # Restore the original umask: -umask ${_UMASK_} +umask ${_UMASK_} + diff --git a/Core/tdenetwork/tdenetwork.SlackBuild-cmake b/Core/tdenetwork/tdenetwork.SlackBuild-cmake new file mode 100755 index 0000000..bb01b11 --- /dev/null +++ b/Core/tdenetwork/tdenetwork.SlackBuild-cmake @@ -0,0 +1,111 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=tdenetwork +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + +DOCS="AUTHORS COPYING* README*" + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd ${PRGNAM} + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ + -DWITH_SPEEX="ON" \ + -DWITH_ARTS="ON" \ + -DBUILD_KOPETE_PROTOCOL_ALL="ON" \ + -DBUILD_KOPETE_PLUGIN_ALL="ON" \ + -DBUILD_KOPETE_PROTOCOL_GADU="OFF" \ + -DBUILD_KOPETE_PROTOCOL_MEANWHILE="OFF" \ + -DBUILD_ALL="ON" \ + -Wno-dev \ + .. + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +# Add this to the doinst.sh: +mkdir -p $PKG/install +cat <> $PKG/install/doinst.sh +# Update the desktop database: +if [ -x usr/bin/update-desktop-database ]; then + chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1 +fi + +# Update hicolor theme cache: +if [ -d usr/share/icons/hicolor ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null + fi +fi + +# Update the mime database: +if [ -x usr/bin/update-mime-database ]; then + chroot . /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +EOINS + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +cat $SRCDIR/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/Core/tdepim/slack-desc b/Core/tdepim/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdepim/tdepim.SlackBuild b/Core/tdepim/tdepim.SlackBuild index 4cfde9f..01058de 100755 --- a/Core/tdepim/tdepim.SlackBuild +++ b/Core/tdepim/tdepim.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -25,110 +25,16 @@ PRGNAM=tdepim VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="MAINTAINERS README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -143,8 +49,10 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DWITH_ALL_OPTIONS="ON" \ -DWITH_GNOKII="OFF" \ -DWITH_CALDAV="OFF" \ @@ -178,11 +86,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdesdk/slack-desc b/Core/tdesdk/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdesdk/tdesdk.SlackBuild b/Core/tdesdk/tdesdk.SlackBuild index 831395b..a79ad74 100755 --- a/Core/tdesdk/tdesdk.SlackBuild +++ b/Core/tdesdk/tdesdk.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -29,105 +29,12 @@ TAG=${TAG:-_tde} DOCS="COPYING README" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -142,15 +49,16 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DWITH_DBSEARCHENGINE="ON" \ -DWITH_KCAL="ON" \ -DBUILD_ALL="ON" \ -Wno-dev \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -176,11 +84,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; if [ -d $PKG/usr/man ]; then find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; diff --git a/Core/tdetoys/slack-desc b/Core/tdetoys/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdetoys/tdetoys.SlackBuild b/Core/tdetoys/tdetoys.SlackBuild index 56c942a..1157069 100755 --- a/Core/tdetoys/tdetoys.SlackBuild +++ b/Core/tdetoys/tdetoys.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -29,105 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -142,12 +49,14 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DBUILD_ALL="ON" \ -Wno-dev \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -168,11 +77,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdeutils/README b/Core/tdeutils/README old mode 100644 new mode 100755 diff --git a/Core/tdeutils/slack-desc b/Core/tdeutils/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdeutils/tdeutils.SlackBuild b/Core/tdeutils/tdeutils.SlackBuild index 7e3cb23..31fa7f2 100755 --- a/Core/tdeutils/tdeutils.SlackBuild +++ b/Core/tdeutils/tdeutils.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -29,105 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS COPYING* README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -142,18 +49,18 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMAN_INSTALL_DIR=/usr/man \ - -DSYSCONF_INSTALL_DIR=/etc \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DWITH_DPMS="ON" \ - -DWITH_XSCREENSAVER="ON" \ + -DWITH_XSCREENSAVER="OFF" \ -DWITH_SENSORS="ON" \ - -DWITH_SNMP="ON" \ + -DWITH_SNMP="OFF" \ -DBUILD_ALL="ON" \ -Wno-dev \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -179,11 +86,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdevelop/slack-desc b/Core/tdevelop/slack-desc old mode 100644 new mode 100755 diff --git a/Core/tdevelop/tdevelop.SlackBuild b/Core/tdevelop/tdevelop.SlackBuild index b9c7677..27ad138 100755 --- a/Core/tdevelop/tdevelop.SlackBuild +++ b/Core/tdevelop/tdevelop.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide thorninurcide@gmail.com +# Copyright 2015-2016 Thorn inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -25,110 +25,16 @@ PRGNAM=tdevelop VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} -NUMJOBS=${NUMJOBS:-" -j4 "} TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING* HACKING* README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} @@ -138,13 +44,15 @@ chmod -R u+w,go+r-w,a+rX-st . mkdir -p build-${PRGNAM} cd build-${PRGNAM} cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -L$TQTDIR/lib" \ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DWITH_BUILDTOOL_ALL="ON" \ -DWITH_LANGUAGE_ALL="ON" \ -DWITH_VCS_ALL="ON" \ @@ -177,11 +85,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Core/tdewebdev/slack-desc b/Core/tdewebdev/slack-desc deleted file mode 100644 index 4620e93..0000000 --- a/Core/tdewebdev/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ':'. - - |-----handy-ruler------------------------------------------------------| -tdewebdev: tdewebdev (Quanta Plus and other applications) -tdewebdev: -tdewebdev: The tdewebdev package contains Quanta Plus and other applications, -tdewebdev: which are useful for web development. They are runtime dependencies -tdewebdev: of Quanta Plus, and it is highly recommended that you install them. -tdewebdev: -tdewebdev: -tdewebdev: -tdewebdev: -tdewebdev: -tdewebdev: Home: http://www.trinitydesktop.org/ diff --git a/Core/tdewebdev/tdewebdev.SlackBuild b/Core/tdewebdev/tdewebdev.SlackBuild index 2d0780e..0750cdc 100755 --- a/Core/tdewebdev/tdewebdev.SlackBuild +++ b/Core/tdewebdev/tdewebdev.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide +# Copyright 2015-2016 Thorn Inurcide # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -27,126 +27,68 @@ VERSION=${VERSION:-R14.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_tde} -DOCS="AUTHORS ChangeLog* COPYING* NEWS README* TODO" - -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +tdewebdev: tdewebdev (Quanta Plus and other applications) +tdewebdev: +tdewebdev: The tdewebdev package contains Quanta Plus and other applications, +tdewebdev: which are useful for web development. They are runtime dependencies +tdewebdev: of Quanta Plus, and it is highly recommended that you install them. +tdewebdev: +tdewebdev: +tdewebdev: +tdewebdev: +tdewebdev: +tdewebdev: Home: http://www.trinitydesktop.org/ +" > $PKG/install/slack-desc +} + +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM} +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . -mkdir -p build-${PRGNAM} -cd build-${PRGNAM} - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DBUILD_ALL="ON" \ - -Wno-dev \ - .. - make || exit 1 + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - @@ -167,17 +109,17 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/install -cat $SRCDIR/slack-desc > $PKG/install/slack-desc +SlackDesc cd $PKG makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} @@ -187,4 +129,5 @@ cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt # Restore the original umask: -umask ${_UMASK_} +umask ${_UMASK_} + diff --git a/Deps/BUILD-ORDER b/Deps/BUILD-ORDER deleted file mode 100644 index 264203c..0000000 --- a/Deps/BUILD-ORDER +++ /dev/null @@ -1,7 +0,0 @@ -1. tqt3 -2. tqtinterface -3. arts -4. dbus-tqt -5. dbus-1-tqt -6. tqca-tls -7. libart_lgpl diff --git a/Deps/arts/arts.SlackBuild b/Deps/arts/arts.SlackBuild index e13b400..40f9510 100755 --- a/Deps/arts/arts.SlackBuild +++ b/Deps/arts/arts.SlackBuild @@ -29,112 +29,12 @@ TAG=${TAG:-_tde} DOCS="COPYING TRINITY*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} @@ -150,19 +50,21 @@ cd build-${PRGNAM} -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DCMAKE_SKIP_RPATH="OFF" \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Deps/arts/slack-desc b/Deps/arts/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/dbus-1-tqt/dbus-1-tqt.SlackBuild b/Deps/dbus-1-tqt/dbus-1-tqt.SlackBuild index ba0eb9f..a7a869e 100755 --- a/Deps/dbus-1-tqt/dbus-1-tqt.SlackBuild +++ b/Deps/dbus-1-tqt/dbus-1-tqt.SlackBuild @@ -29,112 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS ChangeLog* COPYING* README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} @@ -149,18 +49,20 @@ cd build-${PRGNAM} -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Deps/dbus-1-tqt/slack-desc b/Deps/dbus-1-tqt/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/dbus-tqt/dbus-tqt.SlackBuild b/Deps/dbus-tqt/dbus-tqt.SlackBuild index 2e6f85d..36516ed 100755 --- a/Deps/dbus-tqt/dbus-tqt.SlackBuild +++ b/Deps/dbus-tqt/dbus-tqt.SlackBuild @@ -29,112 +29,12 @@ TAG=${TAG:-_tde} DOCS="AUTHORS COPYING NEWS README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} @@ -149,20 +49,21 @@ cd build-${PRGNAM} -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; -# Compress the man page(s): if [ -d $PKG/usr/man ]; then find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done diff --git a/Deps/dbus-tqt/slack-desc b/Deps/dbus-tqt/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/libart_lgpl/README b/Deps/libart_lgpl/README old mode 100644 new mode 100755 diff --git a/Deps/libart_lgpl/libart_lgpl.SlackBuild b/Deps/libart_lgpl/libart_lgpl.SlackBuild index 3464661..46a82c9 100755 --- a/Deps/libart_lgpl/libart_lgpl.SlackBuild +++ b/Deps/libart_lgpl/libart_lgpl.SlackBuild @@ -30,112 +30,12 @@ PKGNAME=libart_lgpl DOCS="AUTHORS ChangeLog* COPYING NEWS README*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} @@ -153,7 +53,7 @@ CFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux \ -make || exit 1 +make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION diff --git a/Deps/libart_lgpl/slack-desc b/Deps/libart_lgpl/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/tqca-tls/slack-desc b/Deps/tqca-tls/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/tqca-tls/tqca-tls.SlackBuild b/Deps/tqca-tls/tqca-tls.SlackBuild index a7a1398..64e2c42 100755 --- a/Deps/tqca-tls/tqca-tls.SlackBuild +++ b/Deps/tqca-tls/tqca-tls.SlackBuild @@ -28,106 +28,12 @@ BUILD=${BUILD:-1} TAG=${TAG:-_tde} DOCS="COPYING README" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} @@ -135,22 +41,24 @@ cd ${PRGNAM} chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . +# This configure script doesn't accept crap for arguments see ./configure --help to verify +[[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" configure || true LDFLAGS="$SLKLDFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ ./configure \ ---qtdir=/usr/lib${LIBDIRSUFFIX}/tqt3-${VERSION} +--qtdir=$TQTDIR-${VERSION} -make || exit 1 +make $NUMJOBS || exit 1 -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/tqt3-${VERSION}/plugins/crypto/ -install -m 0755 libtqca-tls.so $PKG/usr/lib${LIBDIRSUFFIX}/tqt3-${VERSION}/plugins/crypto/ +mkdir -p $PKG$TQTDIR-${VERSION}/plugins/crypto/ +install -m 0755 libtqca-tls.so $PKG$TQTDIR-${VERSION}/plugins/crypto/ -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/Deps/tqt3/profile.d/tqt3.csh b/Deps/tqt3/profile.d/tqt3.csh old mode 100644 new mode 100755 index 2ef390b..4c3e2aa --- a/Deps/tqt3/profile.d/tqt3.csh +++ b/Deps/tqt3/profile.d/tqt3.csh @@ -3,20 +3,14 @@ if ( ! $?QTDIR ) then # It's best to use the generic directory to avoid # compiling in a version-containing path: - if ( -d /usr/lib${LIBDIRSUFFIX}/tqt3 ) then - setenv QTDIR /usr/lib${LIBDIRSUFFIX}/tqt3 + if ( -d $TQTDIR ) then + setenv QTDIR $TQTDIR else # Find the newest Qt directory and set $QTDIR to that: - foreach qtd ( /usr/lib${LIBDIRSUFFIX}/tqt3-* ) + foreach qtd ( $TQTDIR-* ) if ( -d $qtd ) then setenv QTDIR $qtd endif end endif endif -set path = ( $path $QTDIR/bin ) -if ( $?CPLUS_INCLUDE_PATH ) then - setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH -else - setenv CPLUS_INCLUDE_PATH $QTDIR/include -endif diff --git a/Deps/tqt3/profile.d/tqt3.sh b/Deps/tqt3/profile.d/tqt3.sh old mode 100644 new mode 100755 index 0cb36b0..3bf8210 --- a/Deps/tqt3/profile.d/tqt3.sh +++ b/Deps/tqt3/profile.d/tqt3.sh @@ -3,21 +3,14 @@ # # It's best to use the generic directory to avoid # compiling in a version-containing path: -if [ -d /usr/lib${LIBDIRSUFFIX}/tqt3 ]; then - QTDIR=/usr/lib${LIBDIRSUFFIX}/tqt3 +if [ -d $TQTDIR ]; then + QTDIR=$TQTDIR else # Find the newest Qt directory and set $QTDIR to that: - for qtd in /usr/lib${LIBDIRSUFFIX}/tqt3-* ; do + for qtd in $TQTDIR-* ; do if [ -d $qtd ]; then QTDIR=$qtd fi done fi -if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then - CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH -else - CPLUS_INCLUDE_PATH=$QTDIR/include -fi -PATH="$PATH:$QTDIR/bin" export QTDIR -export CPLUS_INCLUDE_PATH diff --git a/Deps/tqt3/slack-desc b/Deps/tqt3/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/tqt3/tqt3.SlackBuild b/Deps/tqt3/tqt3.SlackBuild index a00684c..aa2773f 100755 --- a/Deps/tqt3/tqt3.SlackBuild +++ b/Deps/tqt3/tqt3.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn Inurcide +# Copyright 2015-2016 Thorn Inurcide USA # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -31,114 +31,21 @@ TAG=${TAG:-_tde} DOCS="ChangeLog* FAQ LICENSE* README* TRINITY.RELEASE" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -# Place to build (TMP) package (PKG) and output (OUTPUT) the program: -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd dependencies cd ${PRGNAM} + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure \ - -prefix /usr/lib${LIBDIRSUFFIX}/$PRGNAM-${VERSION} \ + -prefix $TQTDIR-${VERSION} \ -release \ -verbose \ -I/usr/include/freetype2 \ @@ -159,24 +66,26 @@ echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure \ -xcursor \ -tablet \ -xinerama \ - -plugin-sql-mysql \ -plugin-style-cde \ -plugin-style-compact \ -plugin-style-motif \ -plugin-style-motifplus \ -plugin-style-platinum \ -plugin-style-sgi \ - -plugin-style-windows + -plugin-style-windows -make -i || exit 1 -QTDIR=$PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION + +make -i $NUMJOBS || exit 1 +QTDIR=$PKG$TQTDIR-$VERSION LD_LIBRARY_PATH=$QTDIR/lib make install INSTALL_ROOT=$PKG || exit 1 -make -i symlinks sub-src sub-tools || exit 1 +make -i $NUMJOBS symlinks sub-src sub-tools || exit 1 make install INSTALL_ROOT=$PKG || exit 1 +[[ $TQT_DOCS == "no" ]] && rm -rf $PKG$TQTDIR-$VERSION/doc + # Link the shared libraries -( cd $PKG/usr/lib${LIBDIRSUFFIX} +( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX} for file in $PRGNAM-$VERSION/lib/*.so* ; do ln -sf $file . done @@ -185,6 +94,24 @@ make install INSTALL_ROOT=$PKG || exit 1 # Add this to the doinst.sh: mkdir -p $PKG/install cat <> $PKG/install/doinst.sh +# Add TQt library directories to /etc/ld.so.conf: +if ! grep ${INSTALL_TDE}/lib${LIBDIRSUFFIX} /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then + echo "${INSTALL_TDE}/lib${LIBDIRSUFFIX}" >> /etc/ld.so.conf +fi +if ! grep $TQTDIR-$VERSION/lib /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then + echo "$TQTDIR-$VERSION/lib" >> /etc/ld.so.conf +fi +if [ -x /sbin/ldconfig ]; then + /sbin/ldconfig 2> /dev/null +fi + +# Update PKG_CONFIG_PATH: +if ! grep ${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig /etc/profile.d/pkgconfig.sh +then +sed -i "s|pkgconfig$|pkgconfig:${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig|g" /etc/profile.d/pkgconfig.sh +sed -i "s|pkgconfig$|pkgconfig:${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig|g" /etc/profile.d/pkgconfig.csh +fi + # Update the desktop database: if [ -x usr/bin/update-desktop-database ]; then chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1 @@ -199,11 +126,11 @@ fi EOINS -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; # Add man pages: # mkdir -p $PKG/usr/man @@ -212,8 +139,9 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \; mkdir -p $PKG/etc/profile.d # JD: adapt these to the correct value of LIBDIRSUFFIX -sed "s/\${LIBDIRSUFFIX}/$LIBDIRSUFFIX/g" < $SRCDIR/profile.d/${PRGNAM}.sh > $PKG/etc/profile.d/${PRGNAM}.sh -sed "s/\${LIBDIRSUFFIX}/$LIBDIRSUFFIX/g" < $SRCDIR/profile.d/${PRGNAM}.csh > $PKG/etc/profile.d/${PRGNAM}.csh +# later changed to TQTDIR +sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.sh > $PKG/etc/profile.d/${PRGNAM}.sh +sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.csh > $PKG/etc/profile.d/${PRGNAM}.csh chmod 755 $PKG/etc/profile.d/* # Strip binaries: @@ -223,24 +151,24 @@ chmod 755 $PKG/etc/profile.d/* ) # Put a ton of links to more "normal" places. -mkdir -p $PKG/usr/bin -( cd $PKG/usr/bin +mkdir -p $PKG${INSTALL_TDE}/bin +( cd $PKG${INSTALL_TDE}/bin for file in tqassistant tqdesigner tqlinguist tqlrelease tqlupdate tqmoc tqm2ts tqmake tqtconfig tquic ; do - ln -sf /usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/$file . + ln -sf $TQTDIR-$VERSION/bin/$file . done ) -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig -( cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig - ln -sf /usr/lib${LIBDIRSUFFIX}/${PRGNAM}-${VERSION}/lib/pkgconfig/tqt-mt.pc . +mkdir -p $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig +( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig + ln -sf $TQTDIR-${VERSION}/lib/pkgconfig/tqt-mt.pc . ) # Symlink tqt3 includes to qt3, to provide it for non-tde software as well =] -mkdir -p $PKG/usr/include -( cd $PKG/usr/include ; ln -sf /usr/lib${LIBDIRSUFFIX}/${PRGNAM}-${VERSION}/include qt3 ) +mkdir -p $PKG${INSTALL_TDE}/include +( cd $PKG${INSTALL_TDE}/include ; ln -sf $TQTDIR-${VERSION}/include qt3 ) # Symlink all of it: -( cd $PKG/usr/lib${LIBDIRSUFFIX} ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM}) +( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX} ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM}) mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc diff --git a/Deps/tqtinterface/slack-desc b/Deps/tqtinterface/slack-desc old mode 100644 new mode 100755 diff --git a/Deps/tqtinterface/tqtinterface.SlackBuild b/Deps/tqtinterface/tqtinterface.SlackBuild index 4f34957..3dc8a3b 100755 --- a/Deps/tqtinterface/tqtinterface.SlackBuild +++ b/Deps/tqtinterface/tqtinterface.SlackBuild @@ -29,117 +29,22 @@ TAG=${TAG:-_tde} DOCS="AUTHORS COPYING README* TRINITY.RELEASE" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://tde-mirror.yosemite.net/trinity/releases/${VERSION}/dependencies/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -if $(file ${SOURCE} | grep -qi ": 7-zip"); then - 7za x ${SOURCE} -elif $(file ${SOURCE} | grep -qi ": zip"); then - unzip ${SOURCE} -else - tar -xvf ${SOURCE} -fi +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + cd dependencies cd ${PRGNAM} + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . +# Until the cmake migration is fully completed, tqtinterface should be +# built to install with a $PREFIX of /usr rather than ${INSTALL_TDE}, +# even if you are installing everything else to ${INSTALL_TDE}. mkdir -p build-${PRGNAM} cd build-${PRGNAM} @@ -150,9 +55,13 @@ cd build-${PRGNAM} -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DQT_PREFIX_DIR=${INSTALL_TDE} \ + -DQT_INCLUDE_DIR=$TQTDIR/include \ + -DQT_LIBRARY_DIR=$TQTDIR/lib \ + -DQT_BINARY_DIR=$TQTDIR/bin \ -DQT_VERSION=3 \ .. - make || exit 1 + make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 cd - diff --git a/Apps/kipi-plugins/README b/Libs/kipi-plugins/README old mode 100644 new mode 100755 similarity index 54% rename from Apps/kipi-plugins/README rename to Libs/kipi-plugins/README index a6a6dcc..b590fed --- a/Apps/kipi-plugins/README +++ b/Libs/kipi-plugins/README @@ -6,9 +6,3 @@ exiv2, libkdcraw, libkexiv2, and libkipi are required to build Kipi Plugins. Install exiv2, and build and install libkdcraw, libkexiv2, and libkipi in that order. -libkdcraw, libkipi, kipi-plugins --------------------------------- -The default build is for [US] English only - additional language support -can be built by setting the 'lang' variable. - -NOTE: exiv2 is shipped with Slackware -current diff --git a/Libs/kipi-plugins/kipi-plugins.SlackBuild b/Libs/kipi-plugins/kipi-plugins.SlackBuild new file mode 100755 index 0000000..792fcd6 --- /dev/null +++ b/Libs/kipi-plugins/kipi-plugins.SlackBuild @@ -0,0 +1,127 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=kipi-plugins +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +kipi-plugins: Kipi Plugins are additional functions for the TDE Images Management +kipi-plugins: Host Programs (digiKam, ksquirrel and gwenview). They can add +kipi-plugins: extra menus and shortcuts, and extend the host program features. +kipi-plugins: You can install as many or as few as you like, from within the host +kipi-plugins: programs. +kipi-plugins: +kipi-plugins: With language support for: +kipi-plugins: +kipi-plugins: en $(echo $langs) +kipi-plugins: +kipi-plugins: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd libraries +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am +# +langdoc="kipi-plugins";for Lang in $I18N;do [[ -d doc/$Lang"_kipi-plugins" ]] && langdoc=$(echo $Lang"_kipi-plugins" $langdoc);done +sed -i "s|SUBDIRS =.*$|SUBDIRS =$langdoc|" doc/Makefile.am + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Libs/libkdcraw/libkdcraw.SlackBuild b/Libs/libkdcraw/libkdcraw.SlackBuild new file mode 100755 index 0000000..1dc8bec --- /dev/null +++ b/Libs/libkdcraw/libkdcraw.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=libkdcraw +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +libkdcraw: Libkdcraw (dcraw Library Wrapper) +libkdcraw: +libkdcraw: Libkdcraw is a C++ interface around dcraw binary program used to +libkdcraw: decode RAW picture files. The library documentation is available +libkdcraw: on header files. This library is used by kipi-plugins, digiKam +libkdcraw: and other kipi host programs. +libkdcraw: +libkdcraw: With language support for: +libkdcraw: +libkdcraw: en $(echo $langs) +libkdcraw: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd libraries +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Libs/libkexiv2/libkexiv2.SlackBuild b/Libs/libkexiv2/libkexiv2.SlackBuild new file mode 100755 index 0000000..741307f --- /dev/null +++ b/Libs/libkexiv2/libkexiv2.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=libkexiv2 +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +libkexiv2: Libkexiv2 (Exiv2 Library Wrapper) +libkexiv2: +libkexiv2: Libkexiv2 is a wrapper around Exiv2 library to manipulate picture +libkexiv2: metadata. This library is used by kipi-plugins, digiKam and other +libkexiv2: kipi host programs. The library documentation is available in the +libkexiv2: kexiv2.h header file. +libkexiv2: +libkexiv2: Homepage: http://www.kipi-plugins.org/ +libkexiv2: +libkexiv2: +libkexiv2: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd libraries +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Libs/libkipi/libkipi.SlackBuild b/Libs/libkipi/libkipi.SlackBuild new file mode 100755 index 0000000..897ec26 --- /dev/null +++ b/Libs/libkipi/libkipi.SlackBuild @@ -0,0 +1,125 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=libkipi +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +libkipi: libKipi (KDE Image Plugin Interface) for TDE +libkipi: +libkipi: Kipi is an effort to develop a common plugin structure for digiKam, +libkipi: and other kipi host programs. Its aim is to share image plugins +libkipi: among graphic applications. Kipi is based on the old digiKam plugins +libkipi: implementation and is maintained by the digiKam team. +libkipi: +libkipi: With language support for: +libkipi: +libkipi: en $(echo $langs) +libkipi: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd libraries +cd ${PRGNAM} + + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done +sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am + +mkdir -p build-${PRGNAM} +cd build-${PRGNAM} + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +../configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Libs/libksquirrel/libksquirrel.SlackBuild b/Libs/libksquirrel/libksquirrel.SlackBuild new file mode 100755 index 0000000..53c09f0 --- /dev/null +++ b/Libs/libksquirrel/libksquirrel.SlackBuild @@ -0,0 +1,118 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=libksquirrel +VERSION=${VERSION:-R14.0.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_tde} + + +SlackDesc() +{ +echo " +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +libksquirrel: ksquirrel-libs is a set of image codecs +libksquirrel: containing regular libraries for KSquirrel. +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +libksquirrel: +" > $PKG/install/slack-desc +} + +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd libraries +cd ${PRGNAM} + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + + +# update admin for installed version of libtool +cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/ +cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in + +make -f admin/Makefile.common + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + + +# Configure the package +LDFLAGS="${SLKLDFLAGS}" \ +CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ +CXXFLAGS="${SLKCFLAGS}" \ +./configure \ + --prefix=${INSTALL_TDE} \ + --sysconfdir="/etc/trinity" \ + --mandir=${INSTALL_TDE}/man \ + --disable-rpath \ + --enable-closure + + + make $NUMJOBS || exit 1 + make DESTDIR=$PKG install || exit 1 +cd - + +mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +(cd ${PRGNAM};cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true +cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION +find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} + diff --git a/Deps/GraphicsMagick/GraphicsMagick.SlackBuild b/Misc/GraphicsMagick/GraphicsMagick.SlackBuild similarity index 58% rename from Deps/GraphicsMagick/GraphicsMagick.SlackBuild rename to Misc/GraphicsMagick/GraphicsMagick.SlackBuild index 0812147..23bf656 100755 --- a/Deps/GraphicsMagick/GraphicsMagick.SlackBuild +++ b/Misc/GraphicsMagick/GraphicsMagick.SlackBuild @@ -25,110 +25,17 @@ PRGNAM=GraphicsMagick VERSION=${VERSION:-1.3.21} BUILD=${BUILD:-1} -TAG=${TAG:-_tde} +TAG=${TAG:-} DOCS="ChangeLog* Copyright* NEWS* README* TODO*" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" SRCURL="http://downloads.sourceforge.net/graphicsmagick/${PRGNAM}-${VERSION}.tar.bz2" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM}-${VERSION} chown -R root:root . @@ -166,7 +73,7 @@ CFLAGS="$SLKCFLAGS" \ # programs running in parallel (competing for resources) is a complex topic and some research and experimentation may # be required in order to find the best parameters. -make || exit 1 +make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -187,7 +94,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 cd - diff --git a/Deps/GraphicsMagick/slack-desc b/Misc/GraphicsMagick/slack-desc old mode 100644 new mode 100755 similarity index 100% rename from Deps/GraphicsMagick/slack-desc rename to Misc/GraphicsMagick/slack-desc diff --git a/Misc/inkscape/README b/Misc/inkscape/README new file mode 100755 index 0000000..6b6f015 --- /dev/null +++ b/Misc/inkscape/README @@ -0,0 +1 @@ +All-in-one package to create and edit SVGs from bitmaps - an alternative to potrace, potracegui [and GraphicsMagick]. diff --git a/Misc/inkscape/inkscape.SlackBuild b/Misc/inkscape/inkscape.SlackBuild new file mode 100755 index 0000000..d3e0eb6 --- /dev/null +++ b/Misc/inkscape/inkscape.SlackBuild @@ -0,0 +1,151 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=inkscape +VERSION=${VERSION:-0.91} +BUILD=${BUILD:-1} +TAG=${TAG:-} + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: Inkscape (Open Source vector graphics editor) +$PRGNAM: +$PRGNAM: Inkscape is an Open Source vector graphics editor, with capabilities +$PRGNAM: similar to Illustrator, Freehand, CorelDraw, or Xara X using the W3C +$PRGNAM: standard Scalable Vector Graphics (SVG) file format. +$PRGNAM: +$PRGNAM: Homepage: http://www.inkscape.org/ +$PRGNAM: +$PRGNAM: With language support for: +$PRGNAM: en $(echo $langs) +$PRGNAM: +" > $PKG/install/slack-desc +} + +SRCURL="https://media.inkscape.org/dl/resources/file/$PRGNAM-$VERSION.tar.bz2" +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd ${PRGNAM}-${VERSION} + +langs="" +# don't package non-english man pages in man/man.1 - add them during make install for required languages +sed -i -e '556,559d' -e '550,554d' -e '533,537d' Makefile.in +if [[ $I18N == "" ]] +then +# no locales +NLS="--disable-nls" +else +# set support for additional language(s) as per I18N variable +# but only for languages available with this package +for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang";done +sed -i "s|PO_LINGUAS=.*$|PO_LINGUAS=$langs|" po/Makefile.in.in +fi + + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# only include README..txt for required languages +RM_LIST="" +for po in $I18N;do RM_LIST="$RM_LIST $(ls -1 README.$po.txt)";done || true # fails without true if no README.$po.txt +# list only files > zero bytes +DOCS=$(for file in AUTHORS ChangeLog COPYING* INSTALL NEWS README $RM_LIST;do [[ -s $file ]] && ls -1 $file;done ) || true + + +LDFLAGS="$SLKLDFLAGS" \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -std=c++11" \ +./configure ${NLS:-} \ + --prefix=/usr/local \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION + + +make $NUMJOBS || exit 1 +make DESTDIR=$PKG install || exit 1 +# remove all man pages .. +rm -rf $PKG/usr/man +# .. and re-install those required +# English always .. +make DESTDIR=$PKG install-man1 +# .. and other languages when required +for PO in $I18N; do [[ -s inkscape.$PO.1 ]] && make DESTDIR=$PKG install-man$(echo $PO|tr [:upper:] [:lower:] | tr -d "_")DATA;done + + +# Add this to the doinst.sh: +mkdir -p $PKG/install +cat <> $PKG/install/doinst.sh +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi +EOINS + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/Misc/lxml/README b/Misc/lxml/README new file mode 100755 index 0000000..c52fc43 --- /dev/null +++ b/Misc/lxml/README @@ -0,0 +1,8 @@ +lxml is a Pythonic binding for the libxml2 and libxslt libraries. + +Required for online help functions for Inkscape. + +------------------------------------------------------------ + +Cython, python3 and pysetuptools are optional build dependencies. +cssselect and html5lib are optional runtime dependencies. diff --git a/Misc/lxml/lxml.SlackBuild b/Misc/lxml/lxml.SlackBuild new file mode 100755 index 0000000..74ccc8a --- /dev/null +++ b/Misc/lxml/lxml.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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. +# +# Python build taken from the SlackBuilds.org build script for lxml +# Copyright 2009-2015 Larry Hajali +# All rights reserved. + +PRGNAM=lxml +VERSION=${VERSION:-3.5.0} +BUILD=${BUILD:-1} +TAG=${TAG:-} + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: lxml (Python bindings for libxml2 and libxslt) +$PRGNAM: +$PRGNAM: Required for online help functions for Inkscape. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +" > $PKG/install/slack-desc +} + +SRCURL="http://pypi.python.org/packages/source/l/$PRGNAM/$PRGNAM-$VERSION.tar.gz" +ARCHIVE_TYPE="tar.gz" +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd ${PRGNAM}-${VERSION} +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# list only files > zero bytes +DOCS=$(for file in *.txt PKG-INFO doc/licenses/* doc/FAQ.txt;do [[ -s $file ]] && ls -1 $file;done ) || true + +python setup.py build --with-unicode-strings || exit 1 +python setup.py install --skip-build --root=$PKG || exit 1 + +if $(python3 -c 'import os' 2>/dev/null); then + python3 setup.py build --with-unicode-strings || exit 1 + python3 setup.py install --skip-build --root=$PKG || exit 1 +fi + + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/Misc/mp4v2/mp4v2.SlackBuild b/Misc/mp4v2/mp4v2.SlackBuild new file mode 100755 index 0000000..d60f2e4 --- /dev/null +++ b/Misc/mp4v2/mp4v2.SlackBuild @@ -0,0 +1,83 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=mp4v2 +VERSION=${VERSION:-2.0.0} +BUILD=${BUILD:-1} +TAG=${TAG:-} + +DOCS="COPYING README*" + +SRCURL="http://mp4v2.googlecode.com/files/${PRGNAM}-${VERSION}.tar.bz2" +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd ${PRGNAM}-${VERSION} +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +LDFLAGS="$SLKLDFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux \ + +make $NUMJOBS || exit 1 +make DESTDIR=$PKG install || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +cat $SRCDIR/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/Deps/mp4v2/slack-desc b/Misc/mp4v2/slack-desc old mode 100644 new mode 100755 similarity index 100% rename from Deps/mp4v2/slack-desc rename to Misc/mp4v2/slack-desc diff --git a/Misc/potrace/README b/Misc/potrace/README new file mode 100755 index 0000000..7488644 --- /dev/null +++ b/Misc/potrace/README @@ -0,0 +1,20 @@ + + POTRACE - transform bitmaps into vector graphics + + Potrace is a tool for tracing a bitmap, which means, transforming a + bitmap into a smooth, scalable image. The input is a bitmap (PBM, + PGM, PPM, or BMP), and the default output is one of several vector + file formats. A typical use is to create EPS files from scanned + data, such as company or university logos, handwritten notes, etc. + The resulting image is not "jaggy" like a bitmap, but smooth. It can + then be rendered at any resolution. + + Potrace can currently produce the following output formats: EPS, + PostScript, PDF, SVG (scalable vector graphics), DXF, GeoJSON, PGM + (for easy antialiasing of pixel-based images), Gimppath, and + XFig. Additional backends might be added in the future. + + A separate program, mkbitmap, is also provided. This program can act + as a pre-processor for Potrace, applying scaling and various filters + to an image before converting it to a bitmap. This is useful for + potracing greyscale and color images. diff --git a/Misc/potrace/potrace.SlackBuild b/Misc/potrace/potrace.SlackBuild new file mode 100755 index 0000000..05681cc --- /dev/null +++ b/Misc/potrace/potrace.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn Inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=potrace +VERSION=${VERSION:-1.13} +BUILD=${BUILD:-1} +TAG=${TAG:-} + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: Potrace is a backend for Potracegui. +$PRGNAM: +$PRGNAM: Potrace is a tool for tracing a bitmap - transforming it into a smooth +$PRGNAM: scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP), and +$PRGNAM: the default output is one of several vector file formats: EPS, +$PRGNAM: PostScript, PDF, SVG, DXF, GeoJSON, Gimppath, XFig, and PGM (for easy +$PRGNAM: antialiasing of pixel-based images). +$PRGNAM: +$PRGNAM: A separate program, mkbitmap, can act as a pre-processor for Potrace, +$PRGNAM: applying scaling and various filters to an image before converting it +$PRGNAM: to a bitmap. This is useful for potracing greyscale and color images. +" > $PKG/install/slack-desc +} + +SRCURL="http://$PRGNAM.sourceforge.net/download/$VERSION/$PRGNAM-$VERSION.tar.gz" +ARCHIVE_TYPE="tar.gz" +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} + +cd ${PRGNAM}-${VERSION} +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +# list only files > zero bytes +DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true + +LDFLAGS="$SLKLDFLAGS" \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr/local \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --with-libpotrace \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION + +make $NUMJOBS || exit 1 +make DESTDIR=$PKG install || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/Deps/speex/slack-desc b/Misc/speex/slack-desc old mode 100644 new mode 100755 similarity index 100% rename from Deps/speex/slack-desc rename to Misc/speex/slack-desc diff --git a/Deps/speex/speex.SlackBuild b/Misc/speex/speex.SlackBuild similarity index 50% rename from Deps/speex/speex.SlackBuild rename to Misc/speex/speex.SlackBuild index 4162eb6..f5112a1 100755 --- a/Deps/speex/speex.SlackBuild +++ b/Misc/speex/speex.SlackBuild @@ -31,111 +31,18 @@ PRGNAM=speex VERSION=${VERSION:-1.2rc2} BUILD=${BUILD:-1} -TAG=${TAG:-_tde} +TAG=${TAG:-} DOCS="AUTHORS ChangeLog* COPYING NEWS README* TODO" -# Where do we look for sources? -SRCDIR=$(cd $(dirname $0); pwd) - -# Place to build (TMP) package (PKG) and output (OUTPUT) the program: -TMP=${TMP:-/tmp/build} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -# Input URL: http://downloads.xiph.org/releases/speex/speex-1.2rc2.tar.gz -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz" SRCURL="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz" - -# You can use your own private machine.conf file to overrule machine defaults: -if [ -e $SRCDIR/machine.conf ]; then - . $SRCDIR/machine.conf -elif [ -e /etc/slackbuild/machine.conf ]; then - . /etc/slackbuild/machine.conf -else - # Automatically determine the architecture we're building on: - MARCH=$( uname -m ) - if [ -z "$ARCH" ]; then - case "$MARCH" in - i?86) export ARCH=i486 ;; - armv7hl) export ARCH=$MARCH ;; - armv6hl) export ARCH=$MARCH ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$MARCH ;; - esac - fi - # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: - case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" - ;; - armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; - *) SLKCFLAGS=${SLKCFLAGS:-"O2"} - SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} - ;; - esac -fi - -case "$ARCH" in - arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; - *) TARGET=$ARCH-slackware-linux ;; -esac - -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-1} - -# Save old umask and set to 0022: -_UMASK_=$(umask) -umask 0022 - -# Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* -rm -rf $TMP/tmp-$PRGNAM/* -rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log - -# Source file availability: -if ! [ -f ${SOURCE} ]; then - echo "Source '$(basename ${SOURCE})' not available yet..." - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi - if ! [ "x${SRCURL}" == "x" ]; then - echo "Will download file to $(dirname $SOURCE)" - wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true - if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." - mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 - fi - else - echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 - fi -fi - -if [ "$P1" == "--download" ]; then - echo "Download complete." - exit 0 -fi +ARCHIVE_TYPE="tar.gz" +source ../../get-source.sh cd $TMP/tmp-$PRGNAM -bsdtar -xvf ${SOURCE} +echo " +Extracting the source from the ${PRGNAM} archive ..." +tar -xf ${SOURCE} cd ${PRGNAM}-${VERSION} chown -R root:root . @@ -156,7 +63,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-binaries \ --build=$ARCH-slackware-linux -make || exit 1 +make $NUMJOBS || exit 1 make DESTDIR=$PKG install || exit 1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -180,7 +87,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 cd - diff --git a/Misc/tidy-html5/README b/Misc/tidy-html5/README new file mode 100755 index 0000000..f667831 --- /dev/null +++ b/Misc/tidy-html5/README @@ -0,0 +1 @@ +If tidy is installed, it can be used as an option in Quanta plus [tdewebdev]. diff --git a/Misc/tidy-html5/tidy-html5.SlackBuild b/Misc/tidy-html5/tidy-html5.SlackBuild new file mode 100755 index 0000000..26fba74 --- /dev/null +++ b/Misc/tidy-html5/tidy-html5.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/sh +# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST +# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands +# Copyright 2015-2016 Thorn inurcide +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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=tidy-html5 +# VERSION is entered in this way to work around setting version= in BUILD-TDE.sh +VERSION=master +VERSION=${VERSION:-*} +BUILD=${BUILD:-1} +TAG=${TAG:-} + +# override download option in get-source.sh because there is no version # in the file name +[[ ! -s ../../src/tidy-html5-master.zip ]] && wget -nv -T 20 -O ../../src/tidy-html5-master.zip https://github.com/htacg/tidy-html5/archive/master.zip || true + +SlackDesc() +{ +echo " +# 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 ':'. + +$PRGNAM|-----handy-ruler------------------------------------------------------| +$PRGNAM: Tidy corrects and cleans up HTML and XML documents by fixing markup +$PRGNAM: errors and upgrading legacy code to modern standards. +$PRGNAM: +$PRGNAM: Optional with Quanta+ +$PRGNAM: +$PRGNAM: +$PRGNAM: http://www.html-tidy.org +$PRGNAM: +$PRGNAM: For languages: +$PRGNAM: en $(echo ${langs:-}) +$PRGNAM: +" > $PKG/install/slack-desc +} + +DOCS="README" + +ARCHIVE_TYPE="zip" +source ../../get-source.sh + +cd $TMP/tmp-$PRGNAM +echo " +Extracting the source from the ${PRGNAM} archive ..." +unzip ${SOURCE} + +cd ${PRGNAM}-${VERSION} +VERSION=$(head -n 1 version.txt) + +# don't build in other locales if tidy doesn't support those set as additional languages +I18N=$(echo $I18N | tr '[:upper:]' '[:lower:]') +for lang in $I18N +do +[[ $(ls -1 src/language_*.h|grep _$lang) != "" ]] && LOCALize="YES" && langs="$lang ${langs:-}" +done +[[ ${langs:-} != "" ]] && langs=$langs" + other locales" + +cd build/cmake + +cmake ../.. \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_PREFIX=/usr/local \ +-DSUPPORT_LOCALIZATIONS=${LOCALize:-"NO"} + +chown -R root:root . +chmod -R u+w,go+r-w,a+rX-st . + +make $NUMJOBS || exit 1 +make DESTDIR=$PKG install || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ../../$DOCS/* $PKG/usr/doc/$PRGNAM-$VERSION || true +cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +if [ -d $PKG/usr/man ]; then + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +fi + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/install +SlackDesc + +cd $PKG +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} +cd $OUTPUT +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 +cd - +cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt + +# Restore the original umask: +umask ${_UMASK_} diff --git a/NOTES b/NOTES deleted file mode 100644 index fe6565b..0000000 --- a/NOTES +++ /dev/null @@ -1,2 +0,0 @@ -Freetype issue I was having has been fixed, Thank you AlienBob! - diff --git a/README b/README old mode 100644 new mode 100755 index 3df1f53..9b193b6 --- a/README +++ b/README @@ -1,9 +1,38 @@ -THIS WILL MOST LIKELY INTERFERE WITH KDE +Run ./BUILD-TDE.sh - a dialog based script with a series of screens for user input. -Build the Deps first, then the Core. -You can choose to build optional packages from Apps +============================================================= -Has build scripts that automate the build process +Any package, or set of packages, can be built by running BUILD-TDE.sh and selecting them from the 'TDE Packages Selection' screen. +The TDE mandatory packages can be pre-selected. +Some packages also require other packages to be pre-installed - see notes at the bottom of the dialog screen. -For Slackware 14.2 =] +The directory structure for the SlackBuild scripts is in line with the Trinity source repositories: +Deps [dependencies/] +Core [] +Libs [libraries/] +Apps [applications/] + +Other directories are: +Misc - for non-Trinity package builds +src - to hold all the source tarballs, either pre-downloaded or downloaded during the build. + +Other scripts: +get-source.sh - a chunk of common code for the SBs - used for getting the source archive, setting FLAGS, creating build directories. + +There is an override in the SB for non-trinity source archive URLs. Non-trinity builds have been included where a TDE package requires a dependency that is not in Slackware Current. Or, where it might be an alternative to a TDE package. + +Required packages for a basic working TDE are: + Deps/tqt3 + Deps/tqtinterface + Deps/arts + Deps/dbus-tqt + Deps/dbus-1-tqt + Deps/tqca-tls + Deps/libart_lgpl + Core/tdelibs + Core/tdebase + +i18n support [locale and html/help docs] in the packages is restricted to whatever is selected in BUILD-TDE.sh and, of that, to whatever is available in the package source. + +See https://wiki.trinitydesktop.org/How_to_Build_TDE_Core_Modules for more information diff --git a/build-core.sh b/build-core.sh deleted file mode 100755 index 5af7337..0000000 --- a/build-core.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh - -# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Copyright 2014 Willy Sudiarto Raharjo -# All rights reserved. -# -# Copyright 2015-2016 Thorn Inurcide -# -# 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. - -# These need set here: -INST=1 -TMP=${TMP:-/tmp} -ROOT=$(pwd) - -# Loop for all packages -for dir in \ - Core/tdelibs \ - Core/tdebase \ - Core/tdeutils \ - Core/tdemultimedia \ - Core/tdenetwork \ - Core/tdeartwork \ - Core/tdetoys \ - Core/tdegraphics \ - Core/tdepim \ - Core/tdesdk \ - Core/tdevelop \ - Core/tdeaddons \ - ; do - # Get the package name - package=$(echo $dir | cut -f2- -d /) - - # Change to package directory - cd $ROOT/$dir || exit 1 - - # Get the version - version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev) - - # Get the build - build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev) - - # The real build starts here - sh ${package}.SlackBuild || exit 1 - if [ "$INST" = "1" ]; then - PACKAGE=`ls --color=never $TMP/${package}-${version}-*-${build}*.txz` - if [ -f "$PACKAGE" ]; then - upgradepkg --install-new --reinstall "$PACKAGE" - else - echo "Error: package to upgrade "$PACKAGE" not found in $TMP" - exit 1 - fi - fi - - # back to original directory - cd $ROOT -done diff --git a/build-deps.sh b/build-deps.sh deleted file mode 100755 index 6962078..0000000 --- a/build-deps.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/sh - -# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA -# All rights reserved. -# -# Copyright 2014 Willy Sudiarto Raharjo -# All rights reserved. -# -# Copyright 2015-2016 Thorn Inurcide -# -# 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. - -# These need to be set here: -INST=1 -TMP=${TMP:-/tmp} -ROOT=$(pwd) - -## Allow a rebuild of all dependencies, -## even if they are already installed. -## -## Run: -## REBUILD=yes ./build-deps.sh -REBUILD=${REBUILD:-no} - -# Loop for all packages -for dir in \ - Deps/GraphicsMagick \ - Deps/mp4v2 \ - Deps/speex \ - Deps/tqt3 \ - Deps/tqtinterface \ - Deps/arts \ - Deps/dbus-tqt \ - Deps/dbus-1-tqt \ - Deps/tqca-tls \ - Deps/libart_lgpl \ - ; do - # Get the package name - package=$(echo $dir | cut -f2- -d /) - - ## this check ignores system packages, since we have to replace Slackware's libart - if [ -z `find /var/log/packages/ -iname "*$package*" | grep -v [0-9]$` ] || [ "${REBUILD}" = "yes" ]; then - # Change to package directory - cd $ROOT/$dir || exit 1 - - # Get the version - version=$(cat ${package}.SlackBuild | grep "VERSION:" | head -n1 | cut -d "-" -f2 | rev | cut -c 2- | rev) - - # Get the build - build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev) - - # The real build starts here - sh ${package}.SlackBuild || exit 1 - if [ "$INST" = "1" ]; then - PACKAGE=`ls --color=never $TMP/${package}-${version}-*-${build}*.txz` - if [ -f "$PACKAGE" ]; then - upgradepkg --install-new --reinstall "$PACKAGE" - else - echo "Error: package to upgrade "$PACKAGE" not found in $TMP" - exit 1 - fi - fi - - # back to original directory - cd $ROOT - else - echo "$package already installed." - fi -done diff --git a/Deps/mp4v2/mp4v2.SlackBuild b/get-source.sh similarity index 62% rename from Deps/mp4v2/mp4v2.SlackBuild rename to get-source.sh index fddd010..7e4baba 100755 --- a/Deps/mp4v2/mp4v2.SlackBuild +++ b/get-source.sh @@ -1,7 +1,7 @@ #!/bin/sh # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands -# Copyright 2015-2016 Thorn inurcide +# Copyright 2015-2016 Thorn Inurcide USA # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -22,22 +22,22 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -PRGNAM=mp4v2 -VERSION=${VERSION:-2.0.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_tde} - -DOCS="COPYING README*" - # Where do we look for sources? SRCDIR=$(cd $(dirname $0); pwd) +[[ ! -s $SRCDIR/../../src/${PRGNAM}-${VERSION}.${ARCHIVE_TYPE:-"tar.bz2"} ]] && rm $SRCDIR/../../src/${PRGNAM}-${VERSION}.${ARCHIVE_TYPE:-"tar.bz2"} 2>/dev/null +ln -sf $SRCDIR/../../src/${PRGNAM}-${VERSION}.${ARCHIVE_TYPE:-"tar.bz2"} $SRCDIR +# Place to build (TMP) package (PKG) and output (OUTPUT) the program: TMP=${TMP:-/tmp/build} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" -SRCURL="http://mp4v2.googlecode.com/files/${PRGNAM}-${VERSION}.tar.bz2" +# remove any previous builds +[[ $KEEP_BUILD != "yes" ]] && rm -rf $TMP/{tmp,package}* + +SOURCE=$SRCDIR/${PRGNAM}-${VERSION}.${ARCHIVE_TYPE:-"tar.bz2"} +# SRCURL for non-TDE archives, set in the SB, will override the Trinity default *tar.bz2 URL +SRCURL=${SRCURL:-"http://$TDE_MIRROR/releases/${VERSION}$TDEMIR_SUBDIR/${PRGNAM}-${VERSION}.tar.bz2"} # You can use your own private machine.conf file to overrule machine defaults: if [ -e $SRCDIR/machine.conf ]; then @@ -47,9 +47,11 @@ elif [ -e /etc/slackbuild/machine.conf ]; then else # Automatically determine the architecture we're building on: MARCH=$( uname -m ) +# uname -m will give the wrong architecture if 32bit with 64bit kernel + [[ $MARCH == "x86_64" ]] && ! [[ -d /lib64 ]] && MARCH="i586" if [ -z "$ARCH" ]; then case "$MARCH" in - i?86) export ARCH=i486 ;; + i?86) export ARCH=i586 ;; armv7hl) export ARCH=$MARCH ;; armv6hl) export ARCH=$MARCH ;; arm*) export ARCH=arm ;; @@ -59,17 +61,17 @@ else fi # Set CFLAGS/CXXFLAGS and LIBDIRSUFFIX: case "$ARCH" in - i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + i586) SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKLDFLAGS="" ;; x86_64) SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" + SLKLDFLAGS="-L/usr/lib64" ;; armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + SLKLDFLAGS="" ;; armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + SLKLDFLAGS="" ;; *) SLKCFLAGS=${SLKCFLAGS:-"O2"} SLKLDFLAGS=${SLKLDFLAGS:-""}; LIBDIRSUFFIX=${LIBDIRSUFFIX:-""} @@ -94,10 +96,10 @@ _UMASK_=$(umask) umask 0022 # Create working directories: -mkdir -p $OUTPUT -mkdir -p $TMP/tmp-$PRGNAM -mkdir -p $PKG -rm -rf $PKG/* +mkdir -p $OUTPUT +mkdir -p $TMP/tmp-$PRGNAM +mkdir -p $PKG +rm -rf $PKG/* rm -rf $TMP/tmp-$PRGNAM/* rm -rf $OUTPUT/{checkout,configure,make,install,error,makepkg,patch}-$PRGNAM.log @@ -113,11 +115,11 @@ if ! [ -f ${SOURCE} ]; then if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." mv -f "${SOURCE}" "${SOURCE}".FAIL - exit 1 + ${EXIT_FAIL:-":"} fi else echo "File '$(basename ${SOURCE})' not available... aborting the build." - exit 1 + ${EXIT_FAIL:-":"} fi fi @@ -126,51 +128,3 @@ if [ "$P1" == "--download" ]; then exit 0 fi -cd $TMP/tmp-$PRGNAM -echo "Extracting the source archive(s) for $PRGNAM..." -bsdtar -xvf ${SOURCE} - -cd ${PRGNAM}-${VERSION} -chown -R root:root . -chmod -R u+w,go+r-w,a+rX-st . - -LDFLAGS="$SLKLDFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -CFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-static \ - --build=$ARCH-slackware-linux \ - -make || exit 1 -make DESTDIR=$PKG install || exit 1 - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc -type f -exec chmod 644 {} \; - -if [ -d $PKG/usr/man ]; then - find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; - for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -fi - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/install -cat $SRCDIR/slack-desc > $PKG/install/slack-desc - -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - -# Restore the original umask: -umask ${_UMASK_}