parent
aa0398564e
commit
e3cf204444
@ -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
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -0,0 +1 @@
|
||||
Built with automake/configure because the cmake build doesn't include documentation.
|
@ -1 +0,0 @@
|
||||
V0100199912312359590A0
|
@ -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 <<EOINS >> $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_}
|
||||
|
@ -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_}
|
||||
|
@ -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.
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -0,0 +1,5 @@
|
||||
Needs k3b.
|
||||
|
||||
This SB is configured with
|
||||
--enable-k3bdevices do not activate hal/dbus support (use k3bdevice instead)
|
||||
|
@ -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_}
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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|<tr><td>|<tr><td width=60%>|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_}
|
||||
|
@ -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|<tr><td>|<tr><td width=70%>|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_}
|
||||
|
@ -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.
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -0,0 +1 @@
|
||||
Potracegui is a graphical frontend for potrace, which is in turn a bitmap tracing program.
|
@ -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_}
|
||||
|
@ -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
|
@ -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 <willysr@slackware-id.org>
|
||||
# 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"}
|
||||
|
@ -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
|
@ -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.
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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 <<EOINS >> $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_}
|
@ -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/
|
@ -1,7 +0,0 @@
|
||||
1. tqt3
|
||||
2. tqtinterface
|
||||
3. arts
|
||||
4. dbus-tqt
|
||||
5. dbus-1-tqt
|
||||
6. tqca-tls
|
||||
7. libart_lgpl
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -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_}
|
||||
|
@ -0,0 +1 @@
|
||||
All-in-one package to create and edit SVGs from bitmaps - an alternative to potrace, potracegui [and GraphicsMagick].
|
@ -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 <<EOINS >> $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_}
|
@ -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.
|
@ -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 <larryhaja[at]gmail[dot]com>
|
||||
# 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_}
|
@ -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_}
|
@ -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.
|
@ -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_}
|
@ -0,0 +1 @@
|
||||
If tidy is installed, it can be used as an option in Quanta plus [tdewebdev].
|
@ -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_}
|
@ -1,2 +0,0 @@
|
||||
Freetype issue I was having has been fixed, Thank you AlienBob!
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,76 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Copyright 2014 Willy Sudiarto Raharjo <willysr@slackware-id.org>
|
||||
# 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
|
@ -1,86 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Copyright 2014 Willy Sudiarto Raharjo <willysr@slackware-id.org>
|
||||
# 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
|
Loading…
Reference in new issue