Set up functions script

- modified get-source.sh and replaced common code in SBs with a function call
Added xmedcon to Misc build list
Added -no-exceptions option to tqt3 build
Added dbus-tqt slack-desc to dbus-tqt.SlackBuild
Added selected language support to some SlackBuilds
Moved some Misc optional packages in BUILD-TDE.sh next to the package that needs them
pull/7/head
Ray-V 8 years ago
parent 003adb1ceb
commit 11d781840e

@ -29,12 +29,9 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
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 ## 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 sed -i 's|HAVE_INOTIFY )|HAVE_INOTIFY )\ncheck_include_file( mpfr.h HAVE_MPFR )|' ConfigureChecks.cmake
@ -43,14 +40,11 @@ sed -i 's|HAVE_INOTIFY )|HAVE_INOTIFY )\ncheck_include_file( mpfr.h HAVE_MPFR )|
## As libgmp is linked through libmpfr, do we really need libgmp here? ## As libgmp is linked through libmpfr, do we really need libgmp here?
sed -i 's|mpfr gmp|mpfr -lgmp|' src/CMakeLists.txt sed -i 's|mpfr gmp|mpfr -lgmp|' src/CMakeLists.txt
# list only files > zero bytes listdocs_fn
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 . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -61,21 +55,14 @@ cd build-${PRGNAM}
-DBUILD_DOC="ON" \ -DBUILD_DOC="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -98,18 +85,6 @@ $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] $PRGNAM: [The answers given by $PRGNAM: 1112.26437907 8898.11503252]
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -48,38 +44,32 @@ langdocdk="digikam";for Lang in $langs;do [[ -d doc/$Lang"_digikam" ]] && langdo
langdocsf="showfoto";for Lang in $langs;do [[ -d doc/$Lang"_showfoto" ]] && langdocsf=$(echo $Lang"_showfoto" $langdocsf);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 sed -i "s|SUBDIRS =.*$|SUBDIRS =. $langdocdk $langdocsf|" doc/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--sysconfdir="/etc/trinity" \ --sysconfdir="/etc/trinity" \
--mandir=${INSTALL_TDE}/man \ --mandir=${INSTALL_TDE}/man \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
(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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,10 +91,7 @@ digikam:
digikam: digikam:
digikam: digikam:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
# If building with additional language support, showfoto doesn't run using the language selected # 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 # because showfoto.mo files are not being built. This is added into the build at this packaging
@ -117,14 +104,5 @@ do
ln -s digikam.mo showfoto.mo) ln -s digikam.mo showfoto.mo)
done done
fi fi
cd $PKG makepkg_fn
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_}

@ -29,17 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
echo "
Extracting the source from the ${PRGNAM} archive ..."
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
# list only files > zero bytes listdocs_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
## Patches to edit/create CMakeLists.txt for documentation and locales support ## Patches to edit/create CMakeLists.txt for documentation and locales support
@ -95,11 +89,9 @@ done
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -112,21 +104,14 @@ cd build-${PRGNAM}
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -148,9 +133,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: Home: https://www.trinitydesktop.org/index.php $PRGNAM: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -166,7 +149,6 @@ fi
EOINS EOINS
SlackDesc
# Replace the desktop file, with an alternate one. This one changes the # Replace the desktop file, with an alternate one. This one changes the
# icon name from d3lphin to dolphin. To allow easy system-wide icon # icon name from d3lphin to dolphin. To allow easy system-wide icon
@ -177,13 +159,4 @@ SlackDesc
#$PKG/${INSTALL_TDE}/share/applications/tde/d3lphine.desktop.orig #$PKG/${INSTALL_TDE}/share/applications/tde/d3lphine.desktop.orig
#cp -v $SRCDIR/d3lphin.desktop $PKG/${INSTALL_TDE}/share/applications/tde/d3lphin.desktop #cp -v $SRCDIR/d3lphin.desktop $PKG/${INSTALL_TDE}/share/applications/tde/d3lphin.desktop
cd $PKG makepkg_fn
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_}

@ -29,17 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
echo "
Extracting the source from the ${PRGNAM} archive ..."
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
# list only files > zero bytes listdocs_fn
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 # set support for additional language(s) as per I18N variable
@ -61,11 +55,9 @@ do
[[ -d doc/$line ]] && [[ $ldocs != *$line* ]] && rm -rf doc/$line [[ -d doc/$line ]] && [[ $ldocs != *$line* ]] && rm -rf doc/$line
done done
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -78,21 +70,14 @@ cd build-${PRGNAM}
-DBUILD_TRANSLATIONS="ON" \ -DBUILD_TRANSLATIONS="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -114,18 +99,6 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -28,23 +28,22 @@ VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
DOCS="AUTHORS ChangeLog* COPYING NEWS README* TODO"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
echo "
Extracting the source from the ${PRGNAM} archive ..."
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
chown -R root:root . # set support for additional language(s) as per I18N variable
chmod -R u+w,go+r-w,a+rX-st . # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -e po/$Lang/gtkqtengine.po ]] && langs="$langs $Lang";done
[[ $langs == "" ]] && sed -i "/ADD_SUBDIRECTORY(po)/d" CMakeLists.txt \
|| (cd po ; for po_dir in $(ls -1 ?? |grep :|cut -d: -f1) ; do [[ $langs != *$po_dir* ]] && rm -rf $po_dir ; done)
mkdir -p build-${PRGNAM} chown_fn
cd build-${PRGNAM}
cd_builddir_fn
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -59,21 +58,14 @@ cd build-${PRGNAM}
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -89,16 +81,14 @@ gtk-qt-engine: A GTK theme engine that uses QT for drawing. Open the 'GTK
gtk-qt-engine: Styles and Fonts' section in the TDE control center and select gtk-qt-engine: Styles and Fonts' section in the TDE control center and select
gtk-qt-engine: 'Use my TDE style in GTK applications'. gtk-qt-engine: 'Use my TDE style in GTK applications'.
gtk-qt-engine: gtk-qt-engine:
gtk-qt-engine: gtk-qt-engine: With language support for:
gtk-qt-engine: gtk-qt-engine: en $langs
gtk-qt-engine: gtk-qt-engine:
gtk-qt-engine: gtk-qt-engine:
gtk-qt-engine: Home: https://www.trinitydesktop.org/index.php gtk-qt-engine: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -107,15 +97,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,50 +29,41 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
# can't figure out why installation of theme engines is to usr/lib and not usr/lib$LIBDIRSUFFIX # 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? # where in the source/build is this set up?
mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX 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 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
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -94,9 +85,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -105,15 +94,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -45,13 +41,11 @@ langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po
sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -66,20 +60,14 @@ CXX="g++" \
--enable-closure \ --enable-closure \
--enable-k3bdevices --enable-k3bdevices
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,18 +89,6 @@ $PRGNAM: en $(echo $langs)
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,22 +29,23 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true # set support for additional language(s) as per I18N variable
# but only for languages available with this package
langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done
sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am
langs=$(echo $langs | sed "s|.po||g")
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
# Refusing to compile with Clang # Refusing to compile with Clang
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
@ -60,21 +61,14 @@ CXX="g++" \
--enable-closure \ --enable-closure \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -90,15 +84,13 @@ $PRGNAM: Media Player for TDE
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM: With language support for:
$PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: en $langs
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -114,17 +106,5 @@ fi
EOINS EOINS
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_}
makepkg_fn

@ -29,21 +29,23 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications cd doc;listdocs_fn;cd ../
cd ${PRGNAM}
# list only files > zero bytes # set support for additional language(s) as per I18N variable
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po";done
(cd po;for file in $(ls -1 *.po) ; do [[ $langs != *$file* ]] && rm -rf $file ; done) || true
langs=$(echo $langs | sed "s|.po||g")
## prevent build error if no additional languages are required
[[ $langs != "" ]] && TRANS=ON
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -55,23 +57,17 @@ cd build-${PRGNAM}
-DSYSCONF_INSTALL_DIR="/etc/trinity" \ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-DBUILD_TRANSLATIONS=${TRANS:-OFF} \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -86,16 +82,14 @@ $PRGNAM:
$PRGNAM: KBFX is an alternative to the classical K-Menu button and it's menu $PRGNAM: KBFX is an alternative to the classical K-Menu button and it's menu
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM: With language support for:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM: en $langs
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: Home: https://www.trinitydesktop.org/index.php $PRGNAM: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -111,15 +105,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,46 +29,36 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . ltoolupdate_fn
chmod -R u+w,go+r-w,a+rX-st .
source $SRCDIR/../../ltoolupdate.sh cd_builddir_fn
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--libdir=${INSTALL_TDE}/lib${LIBDIRSUFFIX} \ --libdir=${INSTALL_TDE}/lib${LIBDIRSUFFIX} \
--docdir=${INSTALL_TDE}/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -91,9 +81,7 @@ kbookreader:
kbookreader: Home: https://www.trinitydesktop.org/ kbookreader: Home: https://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -114,14 +102,5 @@ fi
EOINS EOINS
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1
cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,28 +29,22 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -e translations/$Lang ]] && langs="$langs $Lang";done langs="";for Lang in $I18N;do [[ -e translations/$Lang ]] && langs="$langs $Lang";done
sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -64,20 +58,14 @@ CXX="g++" \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -99,18 +87,6 @@ $PRGNAM: en $(echo $langs)
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,12 +29,9 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
# rename knemo icons to avoid conflict with those in tdeartwork # rename knemo icons to avoid conflict with those in tdeartwork
rename network_ knemo_network_ src/knemod/pics/*png rename network_ knemo_network_ src/knemod/pics/*png
@ -48,16 +45,13 @@ sed -i 's|Default Gateway" ), LINK_QUALITY|Default Gateway" ), GATEWAY|' src/kne
langs="";for Lang in $I18N;do [[ -d translations/$Lang ]] && langs="$langs $Lang";done langs="";for Lang in $I18N;do [[ -d translations/$Lang ]] && langs="$langs $Lang";done
sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" translations/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
# list only files > zero bytes listdocs_fn
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 . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -71,21 +65,14 @@ CXX="g++" \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -107,18 +94,6 @@ knemo:
knemo: IMPORTANT: KNemo has to be started using knemo: IMPORTANT: KNemo has to be started using
knemo: Trinity Control Center|Internet & Network|Network Monitor. knemo: Trinity Control Center|Internet & Network|Network Monitor.
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 .. # 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, # the included es.po file is a Google translation - if you're happy to use it,
@ -54,38 +50,32 @@ langs=$(echo $langs | sed 's|.po||g')
# if French is not required, only package English docs # if French is not required, only package English docs
[[ $langs != *fr* ]] && sed -i "s|LANGUAGES = en fr|LANGUAGES = en|" doc/Makefile.am [[ $langs != *fr* ]] && sed -i "s|LANGUAGES = en fr|LANGUAGES = en|" doc/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--sysconfdir="/etc/trinity" \ --sysconfdir="/etc/trinity" \
--mandir=${INSTALL_TDE}/man \ --mandir=${INSTALL_TDE}/man \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
(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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -107,18 +97,6 @@ knights:
knights: en $(echo $langs) knights: en $(echo $langs)
knights: knights:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -55,20 +49,14 @@ CXX=${COMPILER_CXX} \
../configure \ ../configure \
--prefix=${INSTALL_TDE} --prefix=${INSTALL_TDE}
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -90,18 +78,6 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -24,17 +24,15 @@
# SUCH DAMAGE. # SUCH DAMAGE.
PRGNAM=koffice-i18n PRGNAM=koffice-i18n
[[ $I18N == "" ]] && echo -e "\nYou have tried to build $PRGNAM without selecting any language(s)\n" && exit
VERSION=${VERSION:-$TDEVERSION} VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -54,32 +52,28 @@ cd $dir
make -f admin/Makefile.common make -f admin/Makefile.common
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
cd_builddir_fn
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} --prefix=${INSTALL_TDE}
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd ../ cd ../
done done
langs=$(echo $langdir | sed 's|koffice-i18n-||g') langs=$(echo $langdir | sed 's|koffice-i18n-||g')
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION mkdir_install_fn
find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \;
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,18 +95,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
ARCH="noarch" ARCH="noarch"
cd $PKG makepkg_fn
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_}

@ -29,22 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true ltoolupdate_fn
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
# Refusing to compile with Clang =[ # Refusing to compile with Clang =[
LDFLAGS="${SLKLDFLAGS} $($(which Magick++-config) --libs)" \ LDFLAGS="${SLKLDFLAGS} $($(which Magick++-config) --libs)" \
@ -60,21 +55,14 @@ CXX="g++" \
--enable-closure \ --enable-closure \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,9 +84,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -114,17 +100,5 @@ fi
EOINS EOINS
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_}
makepkg_fn

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -45,13 +41,11 @@ langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po
sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -61,20 +55,14 @@ CXX=${COMPILER_CXX} \
../configure \ ../configure \
--prefix=${INSTALL_TDE} --prefix=${INSTALL_TDE}
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,18 +84,6 @@ $PRGNAM: en $langs
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -45,13 +41,11 @@ langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po
sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -61,20 +55,14 @@ CXX=${COMPILER_CXX} \
../configure \ ../configure \
--prefix=${INSTALL_TDE} --prefix=${INSTALL_TDE}
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,18 +84,6 @@ $PRGNAM:
$PRGNAM: en $langs $PRGNAM: en $langs
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,24 +29,18 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
listdocs_fn
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -60,20 +54,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
$PRGNAM: $PRGNAM (shut down utility for TDE) $PRGNAM: $PRGNAM (shut down utility for TDE)
$PRGNAM: $PRGNAM:
@ -88,18 +76,6 @@ $PRGNAM: en $(echo $langs)
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # add English help documentation
tar xf $SRCDIR/ksquirrel-en-docs.tar.xz tar xf $SRCDIR/ksquirrel-en-docs.tar.xz
@ -53,10 +49,11 @@ langs=$(echo $langs | sed 's|.po||g')
# if Russian is not required, only package English docs # if Russian is not required, only package English docs
[[ $I18N != *ru* ]] && sed -i "s| ru||" doc/Makefile.am [[ $I18N != *ru* ]] && sed -i "s| ru||" doc/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown_fn
chown -R root:root . #cd_builddir_fn - don't use
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -71,21 +68,14 @@ CXX=${COMPILER_CXX} \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
(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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -107,18 +97,6 @@ ksquirrel: en $(echo $langs)
ksquirrel: ksquirrel:
ksquirrel: ksquirrel:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,16 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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
# put useful docs in $INSTALL_TDE/doc/kvpnc-$VERSION, not html directory as the Makefile does
mkdir tmpdocs mkdir tmpdocs
for file in $(ls -1 doc | grep -v Makefile) for file in $(ls -1 doc | grep -v Makefile)
do do
@ -56,13 +51,11 @@ langdoc="en";for Lang in $I18N;do [[ -d doc/$Lang ]] && langdoc="$langdoc $Lang"
sed -i "s|KDE_LANG = .*$|KDE_LANG = $langdoc|" doc/Makefile.am sed -i "s|KDE_LANG = .*$|KDE_LANG = $langdoc|" doc/Makefile.am
sed -i "s|SUBDIRS = .*$|SUBDIRS = tdeioslave $langdoc|" doc/Makefile.am sed -i "s|SUBDIRS = .*$|SUBDIRS = tdeioslave $langdoc|" doc/Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -73,22 +66,14 @@ CXX=${COMPILER_CXX} \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(cd ../;cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION) || true
mv ../tmpdocs/* $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION
rm $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/*{debian,gentoo}*
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -110,18 +95,6 @@ $PRGNAM:
$PRGNAM: en $langs $PRGNAM: en $langs
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,25 +29,19 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
patch -p0 < $SRCDIR/reformat-message.patch patch -p0 < $SRCDIR/reformat-message.patch
# list only files > zero bytes listdocs_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -61,20 +55,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,18 +84,6 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 . ltoolupdate_fn
chmod -R u+w,go+r-w,a+rX-st .
source $SRCDIR/../../ltoolupdate.sh cd_builddir_fn
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -59,21 +53,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
tde-style-lipstik: tde-style-lipstik (lipstik style for tde) tde-style-lipstik: tde-style-lipstik (lipstik style for tde)
tde-style-lipstik: tde-style-lipstik:
@ -87,18 +74,6 @@ tde-style-lipstik:
tde-style-lipstik: tde-style-lipstik:
tde-style-lipstik: tde-style-lipstik:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,21 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -57,21 +51,14 @@ cd build-${PRGNAM}
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -94,18 +81,6 @@ tde-style-qtcurve:
tde-style-qtcurve: Home: https://www.trinitydesktop.org/index.php tde-style-qtcurve: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -30,12 +30,9 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
## speex patches to cmake: ## speex patches to cmake:
## [1] new speex/CMakeLists.txt using aac/CMakeLists.txt as a template ## [1] new speex/CMakeLists.txt using aac/CMakeLists.txt as a template
@ -53,8 +50,7 @@ sed -i -e 's|wav )|wav )\nadd_subdirectory( speex )|' \
# See if xine-lib package from Slackware is installed. (Need this to play music so hopefully it is.) # See if xine-lib package from Slackware is installed. (Need this to play music so hopefully it is.)
[[ $(grep -E "xine.h" /var/log/packages/*) ]] && XINE="ON" [[ $(grep -E "xine.h" /var/log/packages/*) ]] && XINE="ON"
# list only files > zero bytes listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -75,11 +71,9 @@ do
[[ -d doc/$line ]] && [[ $ldocs != *$line* ]] && rm -rf doc/$line [[ -d doc/$line ]] && [[ $ldocs != *$line* ]] && rm -rf doc/$line
done done
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -107,21 +101,14 @@ cd build-${PRGNAM}
-DBUILD_TRANSLATIONS="ON" \ -DBUILD_TRANSLATIONS="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -143,9 +130,7 @@ $PKGNAM:
$PKGNAM: $PKGNAM:
$PKGNAM: Home: https://www.trinitydesktop.org/index.php $PKGNAM: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -161,15 +146,6 @@ fi
EOINS EOINS
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" | grep -v handy > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -25,17 +25,15 @@
PKGNAM=tdegwenview-i18n PKGNAM=tdegwenview-i18n
PRGNAM=gwenview-i18n PRGNAM=gwenview-i18n
[[ $I18N == "" ]] && echo -e "\nYou have tried to build $PRGNAM without selecting any language(s)\n" && exit
VERSION=${VERSION:-$TDEVERSION} VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications
cd ${PRGNAM}
# Add missing files for Spanish TDE handbook docs # Add missing files for Spanish TDE handbook docs
if [[ $I18N == *es* ]] if [[ $I18N == *es* ]]
@ -52,21 +50,18 @@ cp de/doc/index.docbook es/doc/index.docbook
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 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 fi
# list only files > zero bytes listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -d $Lang ]] && langs="$langs $Lang";done langs="";for Lang in $I18N;do [[ -d $Lang ]] && langs="$langs $Lang";done
sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" Makefile.am sed -i "s|SUBDIRS=.*$|SUBDIRS=$langs|" Makefile.am
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -80,21 +75,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -116,19 +104,8 @@ tdegwenview-i18n:
tdegwenview-i18n: tdegwenview-i18n:
tdegwenview-i18n: tdegwenview-i18n:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
ARCH="noarch" ARCH="noarch"
cd $PKG PRGNAM=$PKGNAM
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} makepkg_fn
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask:
umask ${_UMASK_}

@ -30,22 +30,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true ltoolupdate_fn
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -59,21 +54,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -95,18 +83,7 @@ tdegwenview:
tdegwenview: tdegwenview:
tdegwenview: tdegwenview:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -29,21 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -57,21 +51,14 @@ cd build-${PRGNAM}
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -94,18 +81,6 @@ tdeio-locate:
tdeio-locate: Home: https://www.trinitydesktop.org/index.php tdeio-locate: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1
cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -25,23 +25,19 @@
PKGNAM=tdek3b-i18n PKGNAM=tdek3b-i18n
PRGNAM=k3b-i18n PRGNAM=k3b-i18n
[[ $I18N == "" ]] && echo -e "\nYou have tried to build $PRGNAM without selecting any language(s)\n" && exit
VERSION=${VERSION:-$TDEVERSION} VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 .
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -51,8 +47,7 @@ for loca in $langs;do sed -i "/$loca/d" subdirs;done
## ... and use modified subdirs to remove unwanted locale directories ## ... and use modified subdirs to remove unwanted locale directories
while read dir;do rm -rf $dir;done < subdirs while read dir;do rm -rf $dir;done < subdirs
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_COMPILER=${COMPILER} \ -DCMAKE_C_COMPILER=${COMPILER} \
@ -60,21 +55,14 @@ cd build-${PRGNAM}
-DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \ -DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,19 +84,8 @@ tdek3b-i18n:
tdek3b-i18n: tdek3b-i18n:
tdek3b-i18n: tdek3b-i18n:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
ARCH="noarch" ARCH="noarch"
cd $PKG PRGNAM=$PKGNAM
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} makepkg_fn
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask:
umask ${_UMASK_}

@ -30,21 +30,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -75,21 +69,14 @@ cd build-${PRGNAM}
-DBUILD_DOC="ON" \ -DBUILD_DOC="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -111,18 +98,7 @@ $PKGNAM:
$PKGNAM: For more information, visit: http://www.k3b.org $PKGNAM: For more information, visit: http://www.k3b.org
$PKGNAM: $PKGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" | grep -v handy > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -29,15 +29,11 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
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 # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -45,13 +41,11 @@ langs="";for Lang in $I18N;do [[ -e po/$Lang".po" ]] && langs="$langs $Lang"".po
sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am sed -i "s|POFILES =.*$|POFILES =$langs|" po/Makefile.am
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
source $SRCDIR/../../ltoolupdate.sh ltoolupdate_fn
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -61,20 +55,14 @@ CXX=${COMPILER_CXX} \
../configure \ ../configure \
--prefix=${INSTALL_TDE} --prefix=${INSTALL_TDE}
make ${NUMJOBS:-} || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,18 +84,6 @@ $PRGNAM: en $langs
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd applications listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
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 . ltoolupdate_fn
chmod -R u+w,go+r-w,a+rX-st .
source $SRCDIR/../../ltoolupdate.sh cd_builddir_fn
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -59,21 +53,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -95,18 +82,6 @@ twin-style-crystal:
twin-style-crystal: twin-style-crystal:
twin-style-crystal: twin-style-crystal:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -176,7 +176,7 @@ dialog --nocancel --no-shadow --colors --help-button --help-label "README" --tit
2> $TMPVARS/I18N && break 2> $TMPVARS/I18N && break
[[ $EXITVAL == 2 ]] && dialog --defaultno --yes-label "Ascii" --no-label "Continue" --no-shadow --colors --no-collapse --yesno \ [[ $EXITVAL == 2 ]] && dialog --defaultno --yes-label "Ascii" --no-label "Continue" --no-shadow --colors --no-collapse --yesno \
"\n "\n
If you can see the two 'y' like letters, then you've probably got If you can see the two 'y' like characters, then you've probably got
\na suitable terminal font installed and can choose \Zr\Z4\ZbContinue\Zn, \na suitable terminal font installed and can choose \Zr\Z4\ZbContinue\Zn,
\notherwise choose \Z1A\Zb\Z0scii\Zn. \notherwise choose \Z1A\Zb\Z0scii\Zn.
\n\n \n\n
@ -326,19 +326,22 @@ Non-TDE apps are in the Misc category and don't need the \Zb\Zr\Z4R\Znequired TD
"Core/tdevelop" "TDE development programs" off "\Zb\Z6 Requires tdesdk \Zn" \ "Core/tdevelop" "TDE development programs" off "\Zb\Z6 Requires tdesdk \Zn" \
"Core/tdetoys" "TDE Amusements" off "\Zb\Z6 \Zn" \ "Core/tdetoys" "TDE Amusements" off "\Zb\Z6 \Zn" \
"Core/tdewebdev" "Quanta Plus and other applications" 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" \ " Misc/tidy-html5" "Corrects and cleans up HTML and XML documents" off "\Zb\Z6 Runtime option for Quanta+ [tdewebdev] \Zn" \
"Core/tdenetwork" "Networking applications for TDE" off "\Zb\Z6 Optional dependency - speex \Zn" \ " Misc/speex" "Audio compression format designed for speech" off "\Zb\Z6 Buildtime option for tdenetwork and amarok. Requires l/speexdsp \Zn" \
"Core/tdenetwork" "Networking applications for TDE" off "\Zb\Z6 Optional build-time 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" \ "Core/tde-i18n" "Additional language support for TDE" off "\Zb\Z6 Required when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \
"Libs/tdelibkdcraw" "Decode RAW picture files" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel \Zn" \ "Libs/tdelibkdcraw" "Decode RAW picture files" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel \Zn" \
"Libs/tdelibkexiv2" "Library to manipulate picture metadata" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel. Needs l/exiv2... \Zn" \ "Libs/tdelibkexiv2" "Library to manipulate picture metadata" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel. Needs l/exiv2... \Zn" \
"Libs/tdelibkipi" "A common plugin structure" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel \Zn" \ "Libs/tdelibkipi" "A common plugin structure" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel \Zn" \
"Libs/kipi-plugins" "Additional functions for digiKam, ksquirrel and gwenview" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel. Requires tdelibkdcraw tdelibkexiv2 tdelibkipi. \Zn" \ "Libs/kipi-plugins" "Additional functions for digiKam, ksquirrel and gwenview" off "\Zb\Z6 Required for digikam, tdegwenview and ksquirrel. Requires tdelibkdcraw tdelibkexiv2 tdelibkipi. \Zn" \
"Libs/libksquirrel" "A set of image codecs for KSquirrel" off "\Zb\Z6 Required for ksquirrel \Zn" \ " Misc/xmedcon" "A medical image conversion utility & library" off "\Zb\Z6 Buildtime option for libksquirrel \Zn" \
"Libs/libksquirrel" "A set of image codecs for KSquirrel" off "\Zb\Z6 Required for ksquirrel. Buildtime options include l/netpbm, t/transfig [fig2dev], Misc/xmedcon \Zn" \
"Apps/abakus" "PC calculator" off "\Zb\Z6 optional dependency l/mpfr which requires l/gmp \Zn" \ "Apps/abakus" "PC calculator" off "\Zb\Z6 optional dependency l/mpfr which requires l/gmp \Zn" \
" Misc/libmp4v2" "Create and modify mp4 files" off "\Zb\Z6 \Zn" \ " Misc/libmp4v2" "Create and modify mp4 files" off "\Zb\Z6 Buildtime option for Amarok \Zn" \
"Apps/tdeamarok" "A Music Player" off "\Zb\Z6 Optional dependencies - xine-lib, libmp4v2, speex, moodbar \Zn" \ "Apps/tdeamarok" "A Music Player" off "\Zb\Z6 Optional dependencies - xine-lib, libmp4v2, speex, moodbar \Zn" \
" Misc/moodbar" "GStreamer plugin for Amarok for moodbar feature" off "\Zb\Z6 Runtime option for Amarok \Zn" \
"Apps/digikam" "A digital photo management application + Showfoto viewer" off "\Zb\Z6 Requires kipi-plugins tdelibkdcraw tdelibkexiv2 tdelibkipi. \Zn" \ "Apps/digikam" "A digital photo management application + Showfoto viewer" off "\Zb\Z6 Requires kipi-plugins tdelibkdcraw tdelibkexiv2 tdelibkipi. \Zn" \
"Apps/dolphin" "Dolphin file manager for TDE" off "\Zb\Z6 \Zn" \ "Apps/dolphin" "Dolphin file manager for TDE" off "\Zb\Z6 A d3lphin.desktop file is included - see dolphin.SlackBuild. \Zn" \
"Apps/filelight" "Graphical diskspace display" off "\Zb\Z6 Runtime requirement x/xdpyinfo \Zn" \ "Apps/filelight" "Graphical diskspace display" off "\Zb\Z6 Runtime requirement x/xdpyinfo \Zn" \
"Apps/gtk-qt-engine" "A GTK+2 theme engine" 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/gtk3-tqt-engine" "A GTK+3 theme engine" off "\Zb\Z6 \Zn" \
@ -356,6 +359,7 @@ Non-TDE apps are in the Misc category and don't need the \Zb\Zr\Z4R\Znequired TD
"Apps/koffice-i18n" "Internationalization files for koffice" off "\Zb\Z6 Required for koffice when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \ "Apps/koffice-i18n" "Internationalization files for koffice" off "\Zb\Z6 Required for koffice when \Zb\Z3Additional language support\Zb\Z6 has been selected \Zn" \
"Apps/ksensors" "A graphical interface for sensors" off "\Zb\Z6 Runtime requirement ap/lm_sensors \Zn" \ "Apps/ksensors" "A graphical interface for sensors" off "\Zb\Z6 Runtime requirement ap/lm_sensors \Zn" \
"Apps/kscope" "A source-editing environment for C and C-style languages." off "\Zb\Z6 Runtime options cscope [d/cscope], ctags [ap/vim], dot [graphviz] \Zn" \ "Apps/kscope" "A source-editing environment for C and C-style languages." off "\Zb\Z6 Runtime options cscope [d/cscope], ctags [ap/vim], dot [graphviz] \Zn" \
" Misc/graphviz" "Graph Visualization" off "\Zb\Z6 Runtime option for kscope. pdf/html docs not built by default \Zn" \
"Apps/kshutdown" "Shutdown utility for TDE" off "\Zb\Z6 \Zn" \ "Apps/kshutdown" "Shutdown utility for TDE" off "\Zb\Z6 \Zn" \
"Apps/ksquirrel" "An image viewer with OpenGL and KIPI support." off "\Zb\Z6 Requires kipi-plugins tdelibkdcraw tdelibkexiv2 tdelibkipi libksquirrel. \Zn" \ "Apps/ksquirrel" "An image viewer with OpenGL and KIPI support." off "\Zb\Z6 Requires kipi-plugins tdelibkdcraw tdelibkexiv2 tdelibkipi libksquirrel. \Zn" \
"Apps/kvpnc" "TDE frontend for various vpn clients" off "\Zb\Z6 Miscellaneous documentation will be in $(cat $TMPVARS/INSTALL_TDE)/doc/kvpnc-$(cat $TMPVARS/TDEVERSION) \Zn" \ "Apps/kvpnc" "TDE frontend for various vpn clients" off "\Zb\Z6 Miscellaneous documentation will be in $(cat $TMPVARS/INSTALL_TDE)/doc/kvpnc-$(cat $TMPVARS/TDEVERSION) \Zn" \
@ -369,11 +373,8 @@ Non-TDE apps are in the Misc category and don't need the \Zb\Zr\Z4R\Znequired TD
"Apps/tdesudo" "Graphical frontend for the sudo command" off "\Zb\Z6 \Zn" \ "Apps/tdesudo" "Graphical frontend for the sudo command" off "\Zb\Z6 \Zn" \
"Apps/twin-style-crystal" "twin theme" off "\Zb\Z6 \Zn" \ "Apps/twin-style-crystal" "twin theme" off "\Zb\Z6 \Zn" \
" Misc/GraphicsMagick" "Swiss army knife of image processing" off "\Zb\Z6 \Zn" \ " Misc/GraphicsMagick" "Swiss army knife of image processing" off "\Zb\Z6 \Zn" \
" Misc/graphviz" "Graph Visualization" off "\Zb\Z6 Optional for kscope. pdf/html docs not built by default \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/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" \ " Misc/lxml" "Python bindings for libxml2 and libxslt" off "\Zb\Z6 Required to use Inkscape online help \Zn" \
" Misc/moodbar" "GStreamer plugin for Amarok for moodbar feature" off "\Zb\Z6 Optional for Amarok \Zn" \
2> $TMPVARS/TDEbuilds 2> $TMPVARS/TDEbuilds
# successful builds are removed from the TDEbuilds list by '$dir ' so add a space to the last entry # 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 # and the " needs to be removed because the Misc entries are double-quoted
@ -461,7 +462,8 @@ do
{ [[ $dir == Deps* ]] && export TDEMIR_SUBDIR="/dependencies"; } \ { [[ $dir == Deps* ]] && export TDEMIR_SUBDIR="/dependencies"; } \
|| { [[ $dir == Core* ]] && export TDEMIR_SUBDIR=""; } \ || { [[ $dir == Core* ]] && export TDEMIR_SUBDIR=""; } \
|| { [[ $dir == Libs* ]] && export TDEMIR_SUBDIR="/libraries"; } \ || { [[ $dir == Libs* ]] && export TDEMIR_SUBDIR="/libraries"; } \
|| { [[ $dir == Apps* ]] && export TDEMIR_SUBDIR="/applications"; } || { [[ $dir == Apps* ]] && export TDEMIR_SUBDIR="/applications"; } \
|| { [[ $dir == *Misc* ]] && export TDEMIR_SUBDIR="misc"; } # used for untar_fn - leading slash deliberately omitted
# Get the package name # Get the package name
package=$(echo $dir | cut -f2- -d /) package=$(echo $dir | cut -f2- -d /)

@ -24,10 +24,12 @@
# SUCH DAMAGE. # SUCH DAMAGE.
PRGNAM=tde-i18n PRGNAM=tde-i18n
[[ $I18N == "" ]] && echo -e "\nYou have tried to build $PRGNAM without selecting any language(s)\n" && exit
VERSION=${VERSION:-$TDEVERSION} VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
## the source unpacked is ~950MB, so to save on build space ## the source unpacked is ~950MB, so to save on build space
## extract, build, and remove source for each language package one at a time ## extract, build, and remove source for each language package one at a time
@ -49,8 +51,7 @@ tar -xf ${SOURCE} ${PRGNAM}/${PRGNAM}-$lang
cd ${PRGNAM} cd ${PRGNAM}
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p ${PRGNAM}-$lang/build mkdir -p ${PRGNAM}-$lang/build
cd ${PRGNAM}-$lang/build cd ${PRGNAM}-$lang/build
@ -67,9 +68,7 @@ cd ${PRGNAM}-$lang/build
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG/${INSTALL_TDE}/doc/${PRGNAM}-$VERSION mkdir -p $PKG/${INSTALL_TDE}/doc/${PRGNAM}-$VERSION
#cp -a $DOCS $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION || true #cp -a $DOCS $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION || true
@ -77,11 +76,14 @@ cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION/${PRGNAM}
chown -R root:root $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION chown -R root:root $PKG${INSTALL_TDE}/doc/${PRGNAM}-$VERSION
find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \; 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
SlackDesc() mkdir_install_fn
{
# extract the name of the language from the source text - a bit messy but there is no standard format
Lang=$(grep Language-Team: $TMP/tmp-$PRGNAM/$PRGNAM/tde-i18n-${lang}/messages/tdebase/*.po|sort -k2 | sed -e 's|Team: |\n|' -e 's| <|\n|' -e 's|akh\\n"|akh|' -e 's|an S|#|' | grep "[A-Z][a-z][a-z]*$"|head -n 1)
[[ "$lang" == "pt" ]] && Lang="Portuguese"
[[ "$lang" == "fy" ]] && Lang="Frisian"
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -103,16 +105,7 @@ ${PRGNAM}-$lang:
${PRGNAM}-$lang: ${PRGNAM}-$lang:
${PRGNAM}-$lang: ${PRGNAM}-$lang:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
# extract the name of the language from the source text - a bit messy but there is no standard format
Lang=$(grep Language-Team: $TMP/tmp-$PRGNAM/$PRGNAM/tde-i18n-${lang}/messages/tdebase/*.po|sort -k2 | sed -e 's|Team: |\n|' -e 's| <|\n|' -e 's|akh\\n"|akh|' -e 's|an S|#|' | grep "[A-Z][a-z][a-z]*$"|head -n 1)
[[ "$lang" == "pt" ]] && Lang="Portuguese"
[[ "$lang" == "fy" ]] && Lang="Frisian"
SlackDesc
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -133,7 +126,6 @@ cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz} makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz}
cd $OUTPUT cd $OUTPUT
md5sum ${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz} > ${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz}.md5 md5sum ${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz} > ${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.txt cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${lang}-${VERSION}-${ARCH}-${BUILD}.txt
# Restore the original umask: # Restore the original umask:

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
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
# patch for TDE bug 2043 # patch for TDE bug 2043
patch -p0 < $SRCDIR/arkplugin-diffs-1 patch -p0 < $SRCDIR/arkplugin-diffs-1
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -65,21 +59,14 @@ cd build-${PRGNAM}
-DBUILD_KADDRESSBOOK_PLUGINS="OFF" \ -DBUILD_KADDRESSBOOK_PLUGINS="OFF" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,9 +88,7 @@ tdeaddons:
tdeaddons: tdeaddons:
tdeaddons: Home: http://www.trinitydesktop.org/ tdeaddons: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -124,14 +109,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -60,21 +54,14 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,9 +83,7 @@ tdeartwork:
tdeartwork: tdeartwork:
tdeartwork: Home: https://www.trinitydesktop.org/index.php tdeartwork: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -119,15 +104,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -31,20 +31,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@ -82,18 +76,11 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Add xinitrc: # Add xinitrc:
mkdir -p $PKG/etc/X11/xinit mkdir -p $PKG/etc/X11/xinit
@ -124,8 +111,8 @@ mkdir -p $PKG/etc/tde
mv $PKG${INSTALL_TDE}/share/config/tdm $PKG/etc/tde mv $PKG${INSTALL_TDE}/share/config/tdm $PKG/etc/tde
( cd $PKG${INSTALL_TDE}/share/config ; ln -sf ../../../etc/tde/tdm . ) ( cd $PKG${INSTALL_TDE}/share/config ; ln -sf ../../../etc/tde/tdm . )
SlackDesc() mkdir_install_fn
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -147,19 +134,8 @@ tdebase:
tdebase: tdebase:
tdebase: Home: https://www.trinitydesktop.org/index.php tdebase: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
sed -e "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" -e "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/doinst.sh > $PKG/install/doinst.sh sed -e "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" -e "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/doinst.sh > $PKG/install/doinst.sh
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
@ -101,21 +95,14 @@ do
: # need something here to prevent exit 1 : # need something here to prevent exit 1
done done
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -137,18 +124,6 @@ tdegames:
tdegames: tdegames:
tdegames: tdegames:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,22 +29,16 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# 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
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
# If imlib is installed, include Kuickshow: # If imlib is installed, include Kuickshow:
[[ $(ls /var/log/packages/imlib-*) ]] && KUICKSHOW=ON [[ $(ls /var/log/packages/imlib-*) ]] && KUICKSHOW=ON
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -70,21 +64,14 @@ cd build-${PRGNAM}
-DBUILD_KOOKA="OFF" \ -DBUILD_KOOKA="OFF" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -106,9 +93,7 @@ tdegraphics:
tdegraphics: tdegraphics:
tdegraphics: Home: https://www.trinitydesktop.org/index.php tdegraphics: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -124,14 +109,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,22 +29,16 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# 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 .
patch -p1 < $SRCDIR/patches/build-with-clang.patch patch -p1 < $SRCDIR/patches/build-with-clang.patch
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -76,21 +70,14 @@ cd build-${PRGNAM}
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -112,9 +99,7 @@ tdelibs:
tdelibs: tdelibs:
tdelibs: Home: https://www.trinitydesktop.org/index.php tdelibs: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -135,14 +120,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -36,23 +36,17 @@ NUMJOBS=$NUMJOBS
USECMAKE="no" USECMAKE="no"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# 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 .
if [ ! "${USECMAKE:-}" == "no" ] if [ ! "${USECMAKE:-}" == "no" ]
then then
# Ummm...so this just builds kmix....? lmao # Ummm...so this just builds kmix....? lmao
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -67,14 +61,9 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
.. ..
else else
# update admin for installed version of libtool ltoolupdate_fn
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
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
# change hard-coded tqt headers directory: # change hard-coded tqt headers directory:
[[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" ../configure [[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" ../configure
@ -92,21 +81,14 @@ CXX=${COMPILER_CXX} \
--enable-closure --enable-closure
fi fi
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -128,9 +110,7 @@ tdemultimedia:
tdemultimedia: tdemultimedia:
tdemultimedia: Home: https://www.trinitydesktop.org/index.php tdemultimedia: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -146,14 +126,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd ${PRGNAM}
# If speex is installed, include it in the build for jingle # If speex is installed, include it in the build for jingle
[[ $(grep speex.h /var/log/packages/*speex*) ]] 2>/dev/null && SPX="ON" [[ $(grep speex.h /var/log/packages/*speex*) ]] 2>/dev/null && SPX="ON"
# list only files > zero bytes listdocs_fn
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 . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
## If changing any of these options, READ CMakeLists.txt for info on interdependencies .. ## If changing any of these options, READ CMakeLists.txt for info on interdependencies ..
cmake \ cmake \
@ -112,21 +106,14 @@ cd build-${PRGNAM}
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -148,9 +135,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: Home: https://www.trinitydesktop.org/index.php $PRGNAM: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -171,14 +156,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,14 +29,10 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
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
# If libcaldav is installed, include it in the build for korganizer # If libcaldav is installed, include it in the build for korganizer
[[ $(ls /var/log/packages/libcaldav*) ]] 2>/dev/null && LCALDAV="ON" [[ $(ls /var/log/packages/libcaldav*) ]] 2>/dev/null && LCALDAV="ON"
@ -44,11 +40,9 @@ DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E
# If libcarddav is installed, include it in the build for korganizer # If libcarddav is installed, include it in the build for korganizer
[[ $(ls /var/log/packages/libcarddav*) ]] 2>/dev/null && LCARDDAV="ON" [[ $(ls /var/log/packages/libcarddav*) ]] 2>/dev/null && LCARDDAV="ON"
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -68,21 +62,14 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -104,9 +91,7 @@ tdepim:
tdepim: tdepim:
tdepim: Home: http://www.trinitydesktop.org/ tdepim: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -127,14 +112,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -60,26 +54,16 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true
cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION
find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \;
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
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 \ mangzip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
strip_fn
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,9 +85,7 @@ tdesdk:
tdesdk: tdesdk:
tdesdk: Home: http://www.trinitydesktop.org/ tdesdk: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -124,14 +106,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -58,21 +52,14 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -94,9 +81,7 @@ tdetoys:
tdetoys: tdetoys:
tdetoys: Home: http://www.trinitydesktop.org/ tdetoys: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -112,14 +97,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -62,21 +56,14 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -98,9 +85,7 @@ tdeutils:
tdeutils: tdeutils:
tdeutils: Home: https://www.trinitydesktop.org/index.php tdeutils: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -121,14 +106,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,14 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} chown_fn
# list only files > zero bytes cd_builddir_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS $TQT_INCLUDE_PATH" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -L$TQTDIR/lib" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -L$TQTDIR/lib" \
@ -61,21 +55,14 @@ cd build-${PRGNAM}
-DBUILD_ALL="ON" \ -DBUILD_ALL="ON" \
-Wno-dev \ -Wno-dev \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -97,9 +84,7 @@ tdevelop:
tdevelop: tdevelop:
tdevelop: Home: http://www.trinitydesktop.org/ tdevelop: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -120,14 +105,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,47 +29,37 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM} ltoolupdate_fn
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh cd_builddir_fn
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \ CXXFLAGS="${SLKCFLAGS}" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=${INSTALL_TDE} \ --prefix=${INSTALL_TDE} \
--sysconfdir="/etc/trinity" \ --sysconfdir="/etc/trinity" \
--mandir=${INSTALL_TDE}/man \ --mandir=${INSTALL_TDE}/man \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
(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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -91,9 +81,7 @@ tdewebdev:
tdewebdev: tdewebdev:
tdewebdev: Home: http://www.trinitydesktop.org/ tdewebdev: Home: http://www.trinitydesktop.org/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -109,15 +97,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,21 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -58,21 +52,14 @@ cd build-${PRGNAM}
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
-DCMAKE_SKIP_RPATH="OFF" \ -DCMAKE_SKIP_RPATH="OFF" \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -94,17 +81,6 @@ arts:
arts: arts:
arts: Home: https://www.trinitydesktop.org/index.php arts: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,21 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -56,21 +50,14 @@ cd build-${PRGNAM}
-DSYSCONF_INSTALL_DIR="/etc/trinity" \ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -92,17 +79,6 @@ dbus-1-tqt:
dbus-1-tqt: dbus-1-tqt:
dbus-1-tqt: Home: https://www.trinitydesktop.org/index.php dbus-1-tqt: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -28,23 +28,17 @@ VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
DOCS="AUTHORS COPYING NEWS README*"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
echo "
Extracting the source from the ${PRGNAM} archive ..."
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -57,33 +51,36 @@ cd build-${PRGNAM}
-DSYSCONF_INSTALL_DIR="/etc/trinity" \ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \ -DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION mangzip_fn
cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true
cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION
find $PKG${INSTALL_TDE}/doc -type f -exec chmod 644 {} \;
if [ -d $PKG/usr/man ]; then strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/install echo "
cat $SRCDIR/slack-desc > $PKG/install/slack-desc # 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 ':'.
cd $PKG |-----handy-ruler------------------------------------------------------|
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} dbus-tqt: dbus-tqt (simple IPC library)
cd $OUTPUT dbus-tqt:
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5 dbus-tqt: A core concept of the D-BUS implementation is that
cd - dbus-tqt: 'libdbus' is intended to be a low-level API, similar to
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt dbus-tqt: Xlib. Most programmers are intended to use the bindings to GLib,
dbus-tqt: Qt, Python, Mono, Java, or whatever. These bindings have varying
dbus-tqt: levels of completeness.
dbus-tqt:
dbus-tqt:
dbus-tqt:
dbus-tqt: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc
# Restore the original umask: makepkg_fn
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------------------------------------------------------|
dbus-tqt: dbus-tqt (simple IPC library)
dbus-tqt:
dbus-tqt: A core concept of the D-BUS implementation is that
dbus-tqt: "libdbus" is intended to be a low-level API, similar to
dbus-tqt: Xlib. Most programmers are intended to use the bindings to GLib,
dbus-tqt: Qt, Python, Mono, Java, or whatever. These bindings have varying
dbus-tqt: levels of completeness.
dbus-tqt:
dbus-tqt:
dbus-tqt:
dbus-tqt: Home: https://www.trinitydesktop.org/index.php

@ -27,48 +27,38 @@ PRGNAM=libart-lgpl
VERSION=${VERSION:-$TDEVERSION} VERSION=${VERSION:-$TDEVERSION}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
PKGNAME=libart_lgpl PKGNAM=libart_lgpl
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PKGNAME-$VERSION \
--disable-static \ --disable-static \
--build=$ARCH-slackware-linux \ --build=$ARCH-slackware-linux \
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION installdocs_fn
cp -a $DOCS $PKG/usr/doc/$PKGNAME-$VERSION || true
cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild
chown -R root:root $PKG/usr/doc/$PKGNAME-$VERSION
find $PKG/usr/doc -type f -exec chmod 644 {} \;
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -90,17 +80,7 @@ libart_lgpl:
libart_lgpl: libart_lgpl:
libart_lgpl: Home: https://www.trinitydesktop.org/index.php libart_lgpl: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAME}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAME}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAME}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAME}" > $OUTPUT/${PKGNAME}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -29,18 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
bsdtar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* rfc4791.pdf ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . #cd_builddir_fn - don't use
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -55,21 +52,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -91,18 +81,6 @@ libcaldav:
libcaldav: en $(echo $langs) libcaldav: en $(echo $langs)
libcaldav: libcaldav:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,18 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
bsdtar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* rfc4791.pdf ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . #cd_builddir_fn - don't use
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -55,21 +52,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -91,18 +81,6 @@ $PRGNAM:
$PRGNAM: en $(echo $langs) $PRGNAM: en $(echo $langs)
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,18 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . #cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
# This configure script doesn't accept crap for arguments see ./configure --help to verify # This configure script doesn't accept crap for arguments see ./configure --help to verify
[[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" configure || true [[ ! -d /usr/include/tqt ]] && sed -i "s|/usr/include/tqt|${INSTALL_TDE}/include/tqt|g" configure || true
@ -52,22 +49,18 @@ CXX=${COMPILER_CXX} \
./configure \ ./configure \
--qtdir=$TQTDIR-${VERSION} --qtdir=$TQTDIR-${VERSION}
make $NUMJOBS || exit 1 make $NUMJOBS || exit 1
mkdir -p $PKG$TQTDIR-${VERSION}/plugins/crypto/ mkdir -p $PKG$TQTDIR-${VERSION}/plugins/crypto/
install -m 0755 libtqca-tls.so $PKG$TQTDIR-${VERSION}/plugins/crypto/ install -m 0755 libtqca-tls.so $PKG$TQTDIR-${VERSION}/plugins/crypto/
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
cp -a $DOCS $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION || true
cat $SRCDIR/$(basename $0) > $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -89,17 +82,6 @@ tqca-tls:
tqca-tls: tqca-tls:
tqca-tls: Home: https://www.trinitydesktop.org/index.php tqca-tls: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -32,23 +32,21 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root . #cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
[[ $COMPILER_CXX == "g++" ]] && NO_EXCEP="-no-exceptions "
echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ./configure ${NO_EXCEP:-}\
-prefix $TQTDIR-${VERSION} \ -prefix $TQTDIR-${VERSION} \
-release \ -release \
-verbose \ -verbose \
@ -95,11 +93,7 @@ make install INSTALL_ROOT=$PKG || exit 1
done done
) )
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
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 {} \;
mkdir -p $PKG/etc/profile.d mkdir -p $PKG/etc/profile.d
# JD: adapt these to the correct value of LIBDIRSUFFIX # JD: adapt these to the correct value of LIBDIRSUFFIX
@ -108,11 +102,7 @@ sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.sh > $PKG/etc/profile.d
sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.csh > $PKG/etc/profile.d/${PRGNAM}.csh sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.csh > $PKG/etc/profile.d/${PRGNAM}.csh
chmod 755 $PKG/etc/profile.d/* chmod 755 $PKG/etc/profile.d/*
# Strip binaries: strip_fn
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
# Put a ton of links to more "normal" places. # Put a ton of links to more "normal" places.
mkdir -p $PKG${INSTALL_TDE}/bin mkdir -p $PKG${INSTALL_TDE}/bin
@ -134,8 +124,8 @@ mkdir -p $PKG${INSTALL_TDE}/include
# Symlink all of it: # Symlink all of it:
( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX} ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM}) ( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX} ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM})
SlackDesc() mkdir_install_fn
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -157,10 +147,8 @@ tqt3:
tqt3: tqt3:
tqt3: Home: https://wiki.trinitydesktop.org/Trinity_Desktop_Environment tqt3: Home: https://wiki.trinitydesktop.org/Trinity_Desktop_Environment
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
# Add this to the doinst.sh: # Add this to the doinst.sh:
mkdir -p $PKG/install
[[ $PREPEND != yes ]] && \ [[ $PREPEND != yes ]] && \
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Add TQt library directories to /etc/ld.so.conf: # Add TQt library directories to /etc/ld.so.conf:
@ -202,7 +190,6 @@ sed -i "s|PKG_CONFIG_PATH |PKG_CONFIG_PATH ${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkg
EOINS EOINS
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -218,14 +205,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -29,24 +29,18 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd dependencies listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes chown_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* 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 .
# Until the cmake migration is fully completed, tqtinterface should be # Until the cmake migration is fully completed, tqtinterface should be
# built to install with a $PREFIX of /usr rather than ${INSTALL_TDE}, # built to install with a $PREFIX of /usr rather than ${INSTALL_TDE},
# even if you are installing everything else to ${INSTALL_TDE}. # even if you are installing everything else to ${INSTALL_TDE}.
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@ -63,21 +57,14 @@ cd build-${PRGNAM}
-DQT_BINARY_DIR=$TQTDIR/bin \ -DQT_BINARY_DIR=$TQTDIR/bin \
-DQT_VERSION=3 \ -DQT_VERSION=3 \
.. ..
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -99,17 +86,6 @@ tqtinterface:
tqtinterface: tqtinterface:
tqtinterface: Home: https://www.trinitydesktop.org/index.php tqtinterface: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,15 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd libraries listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
@ -52,8 +47,7 @@ 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 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 sed -i "s|SUBDIRS =.*$|SUBDIRS =$langdoc|" doc/Makefile.am
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -67,21 +61,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -103,18 +90,6 @@ kipi-plugins: en $(echo $langs)
kipi-plugins: kipi-plugins:
kipi-plugins: kipi-plugins:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -29,20 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd libraries listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . #cd_builddir_fn - don't use
chmod -R u+w,go+r-w,a+rX-st .
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -56,21 +53,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd -
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION installdocs_fn
(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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -92,18 +82,6 @@ libksquirrel:
libksquirrel: libksquirrel:
libksquirrel: libksquirrel:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -30,28 +30,22 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd libraries listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done
sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -65,21 +59,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,18 +88,7 @@ tdelibkdcraw:
tdelibkdcraw: en $(echo $langs) tdelibkdcraw: en $(echo $langs)
tdelibkdcraw: tdelibkdcraw:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -29,23 +29,17 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd libraries listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root . cd_builddir_fn
chmod -R u+w,go+r-w,a+rX-st .
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -59,21 +53,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -95,18 +82,7 @@ tdelibkexiv2:
tdelibkexiv2: tdelibkexiv2:
tdelibkexiv2: tdelibkexiv2:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -30,28 +30,22 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_tde} TAG=${TAG:-_tde}
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd libraries listdocs_fn
cd ${PRGNAM}
# list only files > zero bytes ltoolupdate_fn
DOCS=$(for file in AUTHORS* ChangeLog* COPYING* FAQ* INSTALL* KNOWNBUGS* NEWS* README* TODO* *.lsm;do [[ -s $file ]] && ls -1 $file;done ) || true
source $SRCDIR/../../ltoolupdate.sh chown_fn
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable
# but only for languages available with this package # but only for languages available with this package
langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done langs="";for Lang in $I18N;do [[ -d po/$Lang ]] && langs="$langs $Lang";done
sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am sed -i "s|SUBDIRS =.*$|SUBDIRS =$langs|" po/Makefile.am
mkdir -p build-${PRGNAM} cd_builddir_fn
cd build-${PRGNAM}
LDFLAGS="${SLKLDFLAGS}" \ LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \ CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
@ -65,21 +59,14 @@ CXX=${COMPILER_CXX} \
--disable-rpath \ --disable-rpath \
--enable-closure --enable-closure
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
cd - installdocs_fn
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -101,18 +88,7 @@ tdelibkipi:
tdelibkipi: en $(echo $langs) tdelibkipi: en $(echo $langs)
tdelibkipi: tdelibkipi:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -30,30 +30,26 @@ TAG=${TAG:-}
SRCURL="http://downloads.sourceforge.net/graphicsmagick/${PRGNAM}-${VERSION}.tar.bz2" SRCURL="http://downloads.sourceforge.net/graphicsmagick/${PRGNAM}-${VERSION}.tar.bz2"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes cd_builddir_fn
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 .
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \ --localstatedir=/var \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--disable-openmp \ --disable-openmp \
@ -76,25 +72,16 @@ CXX=${COMPILER_CXX} \
# programs running in parallel (competing for resources) is a complex topic and some research and experimentation may # programs running in parallel (competing for resources) is a complex topic and some research and experimentation may
# be required in order to find the best parameters. # be required in order to find the best parameters.
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mangzip_fn
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 strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -116,17 +103,6 @@ GraphicsMagick: DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM, and TIFF.
GraphicsMagick: GraphicsMagick:
GraphicsMagick: Home: http://www.graphicsmagick.org/ GraphicsMagick: Home: http://www.graphicsmagick.org/
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -33,24 +33,22 @@ TAG=${TAG:-_tde}
SRCURL="http://graphviz.org/pub/graphviz/stable/SOURCES/$PRGNAM-$VERSION.tar.gz" SRCURL="http://graphviz.org/pub/graphviz/stable/SOURCES/$PRGNAM-$VERSION.tar.gz"
ARCHIVE_TYPE="tar.gz" ARCHIVE_TYPE="tar.gz"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes #cd_builddir_fn
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 .
source $SRCDIR/patches
# set file permissions # set file permissions
source $SRCDIR/patches && setperms setperms
# Install PHP bindings to proper location. # Install PHP bindings to proper location.
source $SRCDIR/patches && phpbindings phpbindings
# Fix for php-5.4 and patches from Arch (thanks!) # Fix for php-5.4 and patches from Arch (thanks!)
source $SRCDIR/patches && patches patches
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
@ -68,27 +66,22 @@ make install-strip DESTDIR=$PKG || exit 1
## The primary purpose of this build is for 'dot' for kscope. ## The primary purpose of this build is for 'dot' for kscope.
## If you want the pdf and html documentation, then comment out this line: ## If you want the pdf and html documentation, then comment out this line:
source $SRCDIR/patches && rmdoc rmdoc
# Install config file for PHP. # Install config file for PHP.
source $SRCDIR/patches && graphvizini graphvizini
# gzip man pages # gzip man pages
source $SRCDIR/patches && gzipman gzipman
# Remove empty directories of language bindings that are absent. # Remove empty directories of language bindings that are absent.
source $SRCDIR/patches && emptydirs emptydirs
# Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz ... # Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz ...
source $SRCDIR/patches && dummy dummy
installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -111,18 +104,7 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
source $SRCDIR/patches && doinstsh
cd $PKG doinstsh
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: makepkg_fn
umask ${_UMASK_}

@ -30,12 +30,9 @@ TAG=${TAG:-}
SRCURL="https://media.inkscape.org/dl/resources/file/$PRGNAM-$VERSION.tar.bz2" SRCURL="https://media.inkscape.org/dl/resources/file/$PRGNAM-$VERSION.tar.bz2"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd ${PRGNAM}-${VERSION}
langs="" langs=""
# don't package non-english man pages in man/man.1 - add them during make install for required languages # 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 sed -i -e '556,559d' -e '550,554d' -e '533,537d' Makefile.in
@ -50,15 +47,18 @@ 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 sed -i "s|PO_LINGUAS=.*$|PO_LINGUAS=$langs|" po/Makefile.in.in
fi fi
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
# only include README..txt for required languages # only include README..txt for required languages
RM_LIST="" 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 for po in $I18N;do RM_LIST="$RM_LIST $(ls -1 README.$po.txt)";done || true # fails without true if no README.$po.txt
# only include keys..html for required languages
KEYS_LIST="doc/keys.css doc/keys.en.html"
for po in $I18N;do KEYS_LIST="$KEYS_LIST $(ls -1 doc/keys.$po.html)";done || true
listdocs_fn
# list only files > zero bytes #cd_builddir_fn - don't use
DOCS=$(for file in AUTHORS ChangeLog COPYING* INSTALL NEWS README $RM_LIST;do [[ -s $file ]] && ls -1 $file;done ) || true
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
@ -69,10 +69,8 @@ CXX=${COMPILER_CXX} \
--prefix=/usr/local \ --prefix=/usr/local \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
# remove all man pages .. # remove all man pages ..
rm -rf $PKG/usr/man rm -rf $PKG/usr/man
# .. and re-install those required # .. and re-install those required
@ -81,23 +79,15 @@ make DESTDIR=$PKG install-man1
# .. and other languages when required # .. 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 for PO in $I18N; do [[ -s inkscape.$PO.1 ]] && make DESTDIR=$PKG install-man$(echo $PO|tr [:upper:] [:lower:] | tr -d "_")DATA;done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION installdocs_fn
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mangzip_fn
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
strip_fn
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -119,9 +109,7 @@ $PRGNAM: With language support for:
$PRGNAM: en $(echo $langs) $PRGNAM: en $(echo $langs)
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
@ -137,14 +125,5 @@ fi
EOINS EOINS
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: makepkg_fn
umask ${_UMASK_}

@ -31,50 +31,37 @@ TAG=${TAG:-}
SRCURL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PRGNAM}/${PRGNAM}-${VERSION}.tar.bz2" SRCURL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PRGNAM}/${PRGNAM}-${VERSION}.tar.bz2"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes cd_builddir_fn
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 .
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \ --disable-static \
--build=$ARCH-slackware-linux \ --build=$ARCH-slackware-linux \
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mangzip_fn
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 strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,17 +83,7 @@ libmp4v2:
libmp4v2: libmp4v2:
libmp4v2: Home: http://code.google.com/p/mp4v2/ libmp4v2: Home: http://code.google.com/p/mp4v2/
" > $PKG/install/slack-desc " > $PKG/install/slack-desc
}
mkdir -p $PKG/install
SlackDesc
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}
cd $OUTPUT
md5sum ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PKGNAM}" > $OUTPUT/${PKGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: PRGNAM=$PKGNAM
umask ${_UMASK_} makepkg_fn

@ -35,17 +35,14 @@ TAG=${TAG:-}
SRCURL="http://pypi.python.org/packages/source/l/$PRGNAM/$PRGNAM-$VERSION.tar.gz" SRCURL="http://pypi.python.org/packages/source/l/$PRGNAM/$PRGNAM-$VERSION.tar.gz"
ARCHIVE_TYPE="tar.gz" ARCHIVE_TYPE="tar.gz"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes #cd_builddir_fn
DOCS=$(for file in *.txt PKG-INFO doc/licenses/* doc/FAQ.txt;do [[ -s $file ]] && ls -1 $file;done ) || true
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
python setup.py build --with-unicode-strings || exit 1 python setup.py build --with-unicode-strings || exit 1
python setup.py install --skip-build --root=$PKG || exit 1 python setup.py install --skip-build --root=$PKG || exit 1
@ -55,22 +52,14 @@ if $(python3 -c 'import os' 2>/dev/null); then
python3 setup.py install --skip-build --root=$PKG || exit 1 python3 setup.py install --skip-build --root=$PKG || exit 1
fi fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION installdocs_fn
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 mangzip_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -92,17 +81,6 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -31,49 +31,37 @@ TAG=${TAG:-}
SRCURL="http://pkgs.fedoraproject.org/repo/pkgs/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz/28c8eb65e83b30f71b84be4fab949360/${PRGNAM}-${VERSION}.tar.gz" SRCURL="http://pkgs.fedoraproject.org/repo/pkgs/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz/28c8eb65e83b30f71b84be4fab949360/${PRGNAM}-${VERSION}.tar.gz"
ARCHIVE_TYPE="tar.gz" ARCHIVE_TYPE="tar.gz"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes cd_builddir_fn
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 .
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--disable-static \ --disable-static \
--build=$ARCH-slackware-linux \ --build=$ARCH-slackware-linux \
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mangzip_fn
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 strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -96,17 +84,6 @@ $PRGNAM:
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -31,49 +31,36 @@ TAG=${TAG:-}
SRCURL="http://$PRGNAM.sourceforge.net/download/$VERSION/$PRGNAM-$VERSION.tar.gz" SRCURL="http://$PRGNAM.sourceforge.net/download/$VERSION/$PRGNAM-$VERSION.tar.gz"
ARCHIVE_TYPE="tar.gz" ARCHIVE_TYPE="tar.gz"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE} listdocs_fn
cd ${PRGNAM}-${VERSION} chown_fn
# list only files > zero bytes cd_builddir_fn
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 .
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr/local \ --prefix=/usr/local \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--with-libpotrace \ --with-libpotrace \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
installdocs_fn
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mangzip_fn
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 strip_fn
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 \ mkdir_install_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -95,17 +82,6 @@ $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: applying scaling and various filters to an image before converting it
$PRGNAM: to a bitmap. This is useful for potracing greyscale and color images. $PRGNAM: to a bitmap. This is useful for potracing greyscale and color images.
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -37,57 +37,48 @@ TAG=${TAG:-}
SRCURL="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz" SRCURL="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz"
ARCHIVE_TYPE="tar.gz" ARCHIVE_TYPE="tar.gz"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM untar_fn
tar -xf ${SOURCE}
cd ${PRGNAM}-${VERSION} # Thanks to SBo:
sed -i s/r// README.TI-DSP
# 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 . listdocs_fn
chmod -R u+w,go+r-w,a+rX-st .
chown_fn
cd_builddir_fn
# Thanks to SBo:
sed -i 's/\r//' README.TI-DSP
LDFLAGS="$SLKLDFLAGS" \ LDFLAGS="$SLKLDFLAGS" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ CC=${COMPILER} \
CXX=${COMPILER_CXX} \ CXX=${COMPILER_CXX} \
./configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \ --enable-static=no \
--enable-binaries \ --enable-binaries \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION installdocs_fn
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 mangzip_fn
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
# Fix libspeex.la Thanks SBo script: # Fix libspeex.la Thanks SBo script:
sed -i "s|-L$PKG.*/lib${LIBDIRSUFFIX} ||" $PKG/usr/lib${LIBDIRSUFFIX}/libspeex.la sed -i "s|-L$PKG.*/lib${LIBDIRSUFFIX} ||" $PKG/usr/lib${LIBDIRSUFFIX}/libspeex.la
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() strip_fn
{
mkdir_install_fn
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -109,17 +100,6 @@ speex:
speex: speex:
speex: Home: http://www.speex.org/ speex: Home: http://www.speex.org/
" > $PKG/install/slack-desc " > $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: makepkg_fn
umask ${_UMASK_}

@ -33,10 +33,10 @@ TAG=${TAG:-}
# override download option in get-source.sh because there is no version # in the file name # 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 [[ ! -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
DOCS="README"
ARCHIVE_TYPE="zip" ARCHIVE_TYPE="zip"
source ../../get-source.sh source ../../get-source.sh
getsource_fn
cd $TMP/tmp-$PRGNAM cd $TMP/tmp-$PRGNAM
unzip ${SOURCE} unzip ${SOURCE}
@ -44,6 +44,8 @@ unzip ${SOURCE}
cd ${PRGNAM}-${VERSION} cd ${PRGNAM}-${VERSION}
VERSION=$(head -n 1 version.txt) VERSION=$(head -n 1 version.txt)
listdocs_fn
# don't build in other locales if tidy doesn't support those set as additional languages # don't build in other locales if tidy doesn't support those set as additional languages
I18N=$(echo $I18N | tr '[:upper:]' '[:lower:]') I18N=$(echo $I18N | tr '[:upper:]' '[:lower:]')
for lang in $I18N for lang in $I18N
@ -52,6 +54,7 @@ do
done done
[[ ${langs:-} != "" ]] && langs=$langs" + other locales" [[ ${langs:-} != "" ]] && langs=$langs" + other locales"
cd build/cmake cd build/cmake
cmake ../.. \ cmake ../.. \
@ -67,28 +70,18 @@ cmake ../.. \
-DTIDY_COMPAT_HEADERS="OFF" \ -DTIDY_COMPAT_HEADERS="OFF" \
-DSUPPORT_LOCALIZATIONS=${LOCALize:-"OFF"} -DSUPPORT_LOCALIZATIONS=${LOCALize:-"OFF"}
chown -R root:root . chown_fn
chmod -R u+w,go+r-w,a+rX-st .
make $NUMJOBS || exit 1 make_fn
make DESTDIR=$PKG install || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION installdocs_fn
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 mangzip_fn
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 \ strip_fn
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir_install_fn
SlackDesc()
{
echo " echo "
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The 'handy ruler' below makes it easier to edit a package description. Line # The 'handy ruler' below makes it easier to edit a package description. Line
@ -110,17 +103,6 @@ $PRGNAM: For languages:
$PRGNAM: en $(echo ${langs:-}) $PRGNAM: en $(echo ${langs:-})
$PRGNAM: $PRGNAM:
" > $PKG/install/slack-desc " > $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}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask: makepkg_fn
umask ${_UMASK_}

@ -0,0 +1,139 @@
#!/bin/sh
#
# Slackware build script for (X)MedCon
#
# Copyright 2016 Marek Srejma (sam_web@yahoo.de)
# Copyright 2015-2017 tde-slackbuilds project on GitHub - modified SBo script
# 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=xmedcon
VERSION=${VERSION:-0.14.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_tde}
SRCURL="https://sourceforge.net/projects/xmedcon/files/XMedCon-Source/$VERSION/$PRGNAM-$VERSION.tar.bz2/download"
source ../../get-source.sh
getsource_fn
untar_fn
listdocs_fn
chown_fn
#cd_builddir_fn
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
make_fn
installdocs_fn
mangzip_fn
strip_fn
mkdir_install_fn
mv $PKG/usr/etc $PKG/
mv $PKG/etc/xmedconrc $PKG/etc/xmedconrc.new
mkdir -p $PKG/usr/share/pixmaps
cp -a $DOCDIR/etc/xmedcon.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/share/applications
echo "[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=(X)MedCon
GenericName=Medical Image Conversion
Comment=Medical Image Conversion
Exec=xmedcon
Icon=xmedcon.png
Categories=Graphics;Utility;" > $PKG/usr/share/applications/xmedcon.desktop
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 ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
xmedcon: xmedcon (X)
xmedcon:
xmedcon: a medical image conversion utility & library; hereby hoping to lower
xmedcon: at least one barrier in medical research projects.
xmedcon:
xmedcon:
xmedcon: http://xmedcon.sourceforge.net/
xmedcon:
xmedcon:
xmedcon:
xmedcon:" > $PKG/install/slack-desc
echo $'config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there is 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...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ -e $OLD ]; then
cp -a $OLD ${NEW}.incoming
cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
config etc/xmedconrc.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi' > $PKG/install/doinst.sh
makepkg_fn

@ -1,4 +1,28 @@
#!/bin/sh #!/bin/sh
# Copyright 2015-2017 tde-slackbuilds project on GitHub
# 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.
getsource_fn ()
{
#!/bin/sh
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST # Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands # Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands
# Copyright 2015-2017 Thorn Inurcide USA # Copyright 2015-2017 Thorn Inurcide USA
@ -128,4 +152,86 @@ if [ "$P1" == "--download" ]; then
echo "Download complete." echo "Download complete."
exit 0 exit 0
fi fi
}
untar_fn ()
{
cd $TMP/tmp-$PRGNAM
tar -xf ${SOURCE}
[[ $TDEMIR_SUBDIR != misc ]] && cd ./$(echo $TDEMIR_SUBDIR | cut -d / -f 2) && cd ${PRGNAM} || cd ${PRGNAM}-${VERSION}
}
listdocs_fn ()
{
DOCDIR=$PWD # this is set for installdocs_fn
DOCS=$(for file in AUTHORS* rfc4791.pdf ChangeLog* COPYING* CreatingThemes FAQ* HOWTO INSTALL* KNOWNBUGS* LICEN?E* NEWS* *README{$,^[\.*\.txt],/}* ${RM_LIST:-} ${KEYS_LIST:-} TODO* *.lsm ^[README]*.txt PKG-INFO doc/licenses/* doc/FAQ.txt REMARKS ; do [[ -s $file ]] && ls -1 $file;done ) || true
}
chown_fn ()
{
chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
}
ltoolupdate_fn ()
{
cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/
cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in
cp /$(grep -h missing /var/log/packages/libtool*) admin/
make -f admin/Makefile.common
}
cd_builddir_fn ()
{
mkdir -p build-${PRGNAM}
cd build-${PRGNAM}
}
make_fn ()
{
make ${NUMJOBS:-} || exit 1
make DESTDIR=$PKG install || exit 1
}
installdocs_fn ()
{
[[ $TDEMIR_SUBDIR == misc || $PRGNAM == libart-lgpl ]] && INSTALL_TDE=/usr
mkdir -p $PKG${INSTALL_TDE}/doc/$PRGNAM-$VERSION
(cd $DOCDIR;cp -a --parents ${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 {} \;
}
mangzip_fn ()
{
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
}
strip_fn ()
{
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_install_fn ()
{
mkdir -p $PKG/install
}
makepkg_fn ()
{
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
cat $PKG/install/slack-desc | grep "^${PRGNAM}" | grep -v handy > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Restore the original umask:
umask ${_UMASK_}
}

@ -1,31 +0,0 @@
#!/bin/sh
# Copyright 2017 tde-slackbuilds project on GitHub
# 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.
# Update admin for installed version of libtool
# BEGIN
cp /$(grep -h ltmain.sh /var/log/packages/libtool*) admin/
cp /$(grep -h libtool.m4 /var/log/packages/libtool*) admin/libtool.m4.in
cp /$(grep -h missing /var/log/packages/libtool*) admin/
make -f admin/Makefile.common
# END
Loading…
Cancel
Save