parent
05472b63d2
commit
8099752e0f
@ -0,0 +1,117 @@
|
|||||||
|
#!/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=abakus
|
||||||
|
VERSION=${VERSION:-$TDEVERSION}
|
||||||
|
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 is a calculator designed with computer usability in mind.
|
||||||
|
$PRGNAM: Instead of using your powerful computer to put a limited simulation
|
||||||
|
$PRGNAM: of a calculator on-screen, $PRGNAM instead allows you to use your
|
||||||
|
$PRGNAM: computer to its greater potential.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Can be built and used with mpfr.
|
||||||
|
$PRGNAM: Customizable precision up to 75 digits.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Copy/paste or type in and evaluate complex expressions. Exponentiation
|
||||||
|
$PRGNAM: is right-associative, for example: (2^3)^2*e^4/pi 2^3^2*e^4/pi
|
||||||
|
$PRGNAM: [The answers given by $PRGNAM: 1112.26437907 8898.11503252]
|
||||||
|
|
||||||
|
" > $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 check for mpfr installed to set HAVE_MPFR, otherwise even if it is installed, abakus won't be built with mpfr
|
||||||
|
sed -i 's|HAVE_INOTIFY )|HAVE_INOTIFY )\ncheck_include_file( mpfr.h HAVE_MPFR )|' ConfigureChecks.cmake
|
||||||
|
## the linker can't find 'gmp' although it can find 'mpfr' and fails with:
|
||||||
|
## [100%] Linking CXX executable abakus c++: error: gmp: No such file or directory
|
||||||
|
## As libgmp is linked through libmpfr, do we really need libgmp here?
|
||||||
|
sed -i 's|mpfr gmp|mpfr -lgmp|' src/CMakeLists.txt
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
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_INSTALL_PREFIX=${INSTALL_TDE} \
|
||||||
|
-DBUILD_DOC="ON" \
|
||||||
|
..
|
||||||
|
|
||||||
|
|
||||||
|
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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
|
||||||
|
|
||||||
|
# Restore the original umask:
|
||||||
|
umask ${_UMASK_}
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
Built with automake/configure because the cmake build doesn't include documentation.
|
|
@ -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------------------------------------------------------|
|
|
||||||
dolphin: dolphin (Dolphin file manager for TDE)
|
|
||||||
dolphin:
|
|
||||||
dolphin: Dolphin file manager for TDE
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin:
|
|
||||||
dolphin: Home: https://www.trinitydesktop.org/index.php
|
|
@ -0,0 +1,114 @@
|
|||||||
|
#!/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=knmap
|
||||||
|
VERSION=${VERSION:-$TDEVERSION}
|
||||||
|
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: $PRGNAM is a front end to nmap
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: A normal (non-root) user can use the privileged nmap functions via
|
||||||
|
$PRGNAM: the 'tdesu' utility.
|
||||||
|
$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}
|
||||||
|
|
||||||
|
|
||||||
|
# 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}
|
||||||
|
|
||||||
|
|
||||||
|
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,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=kscope
|
||||||
|
VERSION=${VERSION:-$TDEVERSION}
|
||||||
|
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: $PRGNAM is a TDE-based source-editing environment for C and C-style
|
||||||
|
$PRGNAM: languages. Primarily, it is a front-end to the veteran Cscope,
|
||||||
|
$PRGNAM: a source-code browser originally developed at Bell Labs.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: With language support for:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: en $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 =kscope.pot$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}
|
||||||
|
|
||||||
|
|
||||||
|
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,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=tdesudo
|
||||||
|
VERSION=${VERSION:-$TDEVERSION}
|
||||||
|
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: $PRGNAM is a graphical front end for the sudo command.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: With language support for:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: en $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}
|
||||||
|
|
||||||
|
|
||||||
|
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,3 +1,7 @@
|
|||||||
12/29/2015 Removed Avahi and krb5 as deps
|
12/29/2015 Removed Avahi and krb5 as deps
|
||||||
08/01/2016 Overhaul to entire build process using a dialog script - Thanks Ray-V
|
08/01/2016 Overhaul to entire build process using a dialog script - Thanks Ray-V
|
||||||
2016-12-04 Issue 21 - Added TDEVERSION variable. Changed libcaldav to optional dependency. Updated mp4v2 URL.
|
2016-12-04 Issue 21 - Added TDEVERSION variable. Changed libcaldav to optional dependency. Updated mp4v2 URL.
|
||||||
|
2016-12-xx Updated dolphin, amarok, tdenetwork, k3b[-i18n], tdegames to cmake build.
|
||||||
|
Added Apps/abakus and Apps/filelight. Put Apps in program name order in BUILD-TDE.sh
|
||||||
|
2016-12-xx Added Apps/{knmap,kscope,tdesudo} and Misc/graphviz
|
||||||
|
Modified BUILD-TDE.sh and tqt3.SlackBuild for ld.so.conf option
|
@ -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------------------------------------------------------|
|
|
||||||
tdenetwork: tdenetwork (networking applications)
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork: Networking applications for TDE
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork:
|
|
||||||
tdenetwork: Home: https://www.trinitydesktop.org/index.php
|
|
@ -0,0 +1,14 @@
|
|||||||
|
Graphviz is open source graph visualization software. It has several
|
||||||
|
main graph layout programs. It also has web and interactive graphical
|
||||||
|
interfaces, and auxiliary tools, libraries, and language bindings.
|
||||||
|
|
||||||
|
Graph visualization is a way of representing structural information as
|
||||||
|
diagrams of abstract graphs and networks. Automatic graph drawing has
|
||||||
|
many important applications in software engineering, database and web
|
||||||
|
design, networking, and in visual interfaces for many other domains.
|
||||||
|
|
||||||
|
gts is an optional dependency.
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
pdf and html documentation is not built by default in the SB.
|
||||||
|
To build it, comment out 'source $SRCDIR/patches && rmdoc' in the script [c. line 97].
|
@ -0,0 +1,128 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for graphviz
|
||||||
|
|
||||||
|
# Copyright 2007 Robby Workman <rworkman@slackbuilds.org>
|
||||||
|
# Copyright 2011 Heinz Wiesinger <pprkut@slackbuilds.org>
|
||||||
|
# Copyright 2013-2015 Audrius Kažukauskas <audrius@neutrino.lt>
|
||||||
|
# Copyright 2016 tde-slackbuilds - modified for inclusion in build method
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
# permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of this script must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
PRGNAM=graphviz
|
||||||
|
VERSION=${VERSION:-2.38.0}
|
||||||
|
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 (Graph Visualization)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Graphviz is open source graph visualization software.
|
||||||
|
$PRGNAM: It has several main graph layout programs. It also has
|
||||||
|
$PRGNAM: web and interactive graphical interfaces, and auxiliary
|
||||||
|
$PRGNAM: tools, libraries, and language bindings.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Homepage: http://graphviz.org/
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
|
||||||
|
" > $PKG/install/slack-desc
|
||||||
|
}
|
||||||
|
|
||||||
|
SRCURL="http://graphviz.org/pub/graphviz/stable/SOURCES/$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
|
||||||
|
|
||||||
|
# set file permissions
|
||||||
|
source $SRCDIR/patches && setperms
|
||||||
|
# Install PHP bindings to proper location.
|
||||||
|
source $SRCDIR/patches && phpbindings
|
||||||
|
# Fix for php-5.4 and patches from Arch (thanks!)
|
||||||
|
source $SRCDIR/patches && patches
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
LDFLAGS="$SLKLDFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--enable-ocaml=no
|
||||||
|
|
||||||
|
make $NUMJOBS || exit 1
|
||||||
|
make install-strip DESTDIR=$PKG || exit 1
|
||||||
|
|
||||||
|
## The primary purpose of this build is for 'dot' for kscope.
|
||||||
|
## If you want the pdf and html documentation, then comment out this line:
|
||||||
|
source $SRCDIR/patches && rmdoc
|
||||||
|
# Install config file for PHP.
|
||||||
|
source $SRCDIR/patches && graphvizini
|
||||||
|
# gzip man pages
|
||||||
|
source $SRCDIR/patches && gzipman
|
||||||
|
# Remove empty directories of language bindings that are absent.
|
||||||
|
source $SRCDIR/patches && emptydirs
|
||||||
|
# Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz ...
|
||||||
|
source $SRCDIR/patches && dummy
|
||||||
|
|
||||||
|
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
|
||||||
|
source $SRCDIR/patches && doinstsh
|
||||||
|
|
||||||
|
|
||||||
|
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,125 @@
|
|||||||
|
setperms() {
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
phpbindings() {
|
||||||
|
sed -i 's|/php/modules|/php/extensions|' configure
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
patches() {
|
||||||
|
echo $'--- lib/cgraph/scan.l
|
||||||
|
+++ lib/cgraph/scan.l
|
||||||
|
@@ -152,1 +152,1 @@
|
||||||
|
- agerr(AGWARN,agxbuse(&xb));
|
||||||
|
+ agerr(AGWARN, "%s", agxbuse(&xb));
|
||||||
|
@@ -228,1 +228,1 @@
|
||||||
|
- agerr(AGERR,agxbuse(&xb));
|
||||||
|
+ agerr(AGERR, "%s", agxbuse(&xb));
|
||||||
|
--- plugin/gs/gvloadimage_gs.c
|
||||||
|
+++ plugin/gs/gvloadimage_gs.c
|
||||||
|
@@ -72,11 +72,11 @@
|
||||||
|
|
||||||
|
assert (err < 0);
|
||||||
|
|
||||||
|
- if (err >= e_VMerror)
|
||||||
|
+ if (err >= gs_error_VMerror)
|
||||||
|
errsrc = "PostScript Level 1";
|
||||||
|
- else if (err >= e_unregistered)
|
||||||
|
+ else if (err >= gs_error_unregistered)
|
||||||
|
errsrc = "PostScript Level 2";
|
||||||
|
- else if (err >= e_invalidid)
|
||||||
|
+ else if (err >= gs_error_invalidid)
|
||||||
|
errsrc = "DPS error";
|
||||||
|
else
|
||||||
|
errsrc = "Ghostscript internal error";
|
||||||
|
--- tclpkg/gv/gv_php_init.c
|
||||||
|
+++ tclpkg/gv/gv_php_init.c
|
||||||
|
@@ -27,0 +28 @@
|
||||||
|
+ TSRMLS_FETCH();
|
||||||
|
@@ -32,0 +34 @@
|
||||||
|
+ TSRMLS_FETCH();
|
||||||
|
' | while read line
|
||||||
|
do
|
||||||
|
patch -p0
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
rmdoc() {
|
||||||
|
rm -rf $PKG/usr/share/$PRGNAM/doc
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
graphvizini() {
|
||||||
|
mkdir -p $PKG/etc/php.d
|
||||||
|
cat << EOF > $PKG/etc/php.d/graphviz.ini.new
|
||||||
|
; Enable graphviz extension module
|
||||||
|
; extension=gv.so
|
||||||
|
|
||||||
|
; Graphviz' own documentation mentions a "gv.php" file that should
|
||||||
|
; be included. This file is however not necessary, it is just a
|
||||||
|
; wrapper class around functions that are already available after
|
||||||
|
; loading the extension, just leave out the "gv::" prefix.
|
||||||
|
; In case you still prefer to use the wrapper class you have to
|
||||||
|
; include it using its absolute path:
|
||||||
|
; <?php
|
||||||
|
; include ('/usr/lib$LIBDIRSUFFIX/graphviz/php/gv.php');
|
||||||
|
; ?>
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gzipman() {
|
||||||
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
emptydirs() {
|
||||||
|
find $PKG/usr/lib${LIBDIRSUFFIX}/graphviz -depth -type d -empty -exec rmdir {} \;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz so that it
|
||||||
|
# will be removed when the package is uninstalled. This file is generated by
|
||||||
|
# the postinstall script and contains information about available plugins, so
|
||||||
|
# this is (or at least should be) safe.
|
||||||
|
#
|
||||||
|
# Write some dummy content to it to avoid
|
||||||
|
# "Error: /usr/lib64/graphviz/config6 is zero sized, or other read error."
|
||||||
|
# message during installation.
|
||||||
|
dummy() {
|
||||||
|
echo '# Dummy content.' > $PKG/usr/lib${LIBDIRSUFFIX}/graphviz/config6
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
doinstsh() {
|
||||||
|
cat << EOF > $PKG/install/doinst.sh
|
||||||
|
config() {
|
||||||
|
NEW="\$1"
|
||||||
|
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
|
||||||
|
# If there's no config file by that name, mv it over:
|
||||||
|
if [ ! -r \$OLD ]; then
|
||||||
|
mv \$NEW \$OLD
|
||||||
|
elif [ "\$(cat \$OLD|md5sum)" = "\$(cat \$NEW|md5sum)" ]; then
|
||||||
|
# toss the redundant copy
|
||||||
|
rm \$NEW
|
||||||
|
fi
|
||||||
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
|
}
|
||||||
|
|
||||||
|
config etc/php.d/graphviz.ini.new
|
||||||
|
|
||||||
|
# Configure plugins
|
||||||
|
# (writes /usr/lib*/graphviz/config6 with available plugin information)
|
||||||
|
chroot . /usr/bin/dot -c
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,107 @@
|
|||||||
|
#!/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=moodbar
|
||||||
|
VERSION=${VERSION:-0.1.2}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-}
|
||||||
|
|
||||||
|
SRCURL="http://pkgs.fedoraproject.org/repo/pkgs/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz/28c8eb65e83b30f71b84be4fab949360/${PRGNAM}-${VERSION}.tar.gz"
|
||||||
|
source ../../get-source.sh
|
||||||
|
|
||||||
|
cd $TMP/tmp-$PRGNAM
|
||||||
|
tar -xf ${SOURCE}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
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 \
|
||||||
|
--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
|
||||||
|
|
||||||
|
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 (For inclusion in the Amarok music player)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: The Moodbar is an algorithm for creating a colorful visual
|
||||||
|
$PRGNAM: representation of the contents of an audio file, giving an idea of its
|
||||||
|
$PRGNAM: mood (this is a rather fanciful term for the simple analysis it
|
||||||
|
$PRGNAM: actually does).
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: This package contains a GStreamer plugin with elements that are used
|
||||||
|
$PRGNAM: in the moodbar analysis, and an application that actually does the analysis.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
|
||||||
|
" > $PKG/install/slack-desc
|
||||||
|
}
|
||||||
|
|
||||||
|
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_}
|
Loading…
Reference in new issue