Revised dolphin.SlackBuild for locales

Modified tqt3.SlackBuild for clang build
Added SlackBuild READMEs to BUILD-TDE.sh
pull/25/head
Ray-V 7 years ago
parent 5491a8bd04
commit 707ca0c046

@ -77,15 +77,16 @@ endif(NOT GETTEXT_MSGFMT_EXECUTABLE)
# 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 po/$Lang".po" ]] && langs="$langs $Lang"".po";done cd po
langs="";for Lang in $I18N;do [[ -e $Lang".po" ]] && langs="$langs $Lang"".po";done
## output list of available locales ... ## output list of available locales ...
ls -1 po | while read line for line in $(ls -1 *.po)
do do
## ... and compare to selected locales & remove those not required ## ... and compare to selected locales & remove those not required
[[ $(echo $line|grep po) ]] && [[ $langs != *$line* ]] && rm -rf po/$line [[ $langs != *$line* ]] && rm -rf $line
done done
langs=$(echo $langs | sed 's|.po||g') langs=$(echo $langs | sed 's|.po||g')
cd ..
chown_fn chown_fn

@ -1,11 +1,6 @@
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 collaboration between Google translate, my Spanish-English-Spanish dictionary, and various other sources.
the included es.po file is a collaboration between Google translate,
my Spanish-English-Spanish dictionary, and various other sources.
Any involvement from a Spanish speaker to check and correct will be welcome. Any involvement from a Spanish speaker to check and correct will be welcome.
Kbabel is not necessary, it will display in a text editor just fine. Kbabel is not necessary, it will display in a text editor just fine.
Tested with gnuchess-6.2.2, stockfish-7-linux, and komodo-7, in UCI mode. Tested with gnuchess-6.2.2, stockfish-7-linux, and komodo-7, in UCI mode.

@ -490,6 +490,35 @@ PNG_VERSION=$(grep VERSION:- $ROOT/Misc/libpng/libpng.SlackBuild|cut -d- -f2|cut
[[ ! $(ls $LIBPNG_TMP/libpng-${PNG_VERSION}-*-1.txz) ]] && \ [[ ! $(ls $LIBPNG_TMP/libpng-${PNG_VERSION}-*-1.txz) ]] && \
sed -i 's|Apps/koffice|Misc/libpng &|' $TMPVARS/TDEbuilds sed -i 's|Apps/koffice|Misc/libpng &|' $TMPVARS/TDEbuilds
} }
## this dialog will only run if any of the selected packages has a README
rm -f $TMPVARS/READMEs
## generate list of READMEs ..
RM_LIST=$(find . -name "*README*" | grep -v tdebase | grep -o "[ACDLM][a-z]*/[-_0-z]*")
for package in $(cat $TMPVARS/TDEbuilds)
do
[[ $RM_LIST == *$package* ]] && {
echo "\Zb\Z6\Zu$package\ZU\Zn" >> $TMPVARS/READMEs
echo >> $TMPVARS/READMEs
echo "$(cat $package/README)" >> $TMPVARS/READMEs
echo >> $TMPVARS/READMEs
}
done
## .. if there is a list, run dialog
[[ $(cat $TMPVARS/READMEs) ]] && {
dialog --cr-wrap --defaultno --no-shadow --colors --title " READMEs " --yesno \
"
A number of selected packages have READMEs in their SlackBuilds directories.
Do you want to read the READMEs?
" \
10 75
[[ $? == 0 ]] && dialog --no-collapse --cr-wrap --no-shadow --colors --ok-label "Close" --msgbox \
"
$(cat $TMPVARS/READMEs)" \
30 75
}
} }
[[ ! -e $TMPVARS/TDEbuilds ]] && run_dialog [[ ! -e $TMPVARS/TDEbuilds ]] && run_dialog

@ -1,220 +1,8 @@
The source unpacked is ~950MB, so to save on build space, this SlackBuild script The source unpacked is ~950MB, so to save on build space, the
extracts, builds, and removes source for each language package one at a time. SlackBuild script extracts, builds, and removes source for each
language package one at a time.
Any number of packages can be built - set by the I18N variable Any number of packages can be built - set by the I18N variable
Languages are identified as: Language identification is shown in the
'\Zb\Z3Select Additional Languages\Zn' screen README.
af
Afrikaans
ar
Arabic
az
Azerbaijani
be
Belarusian
bg
Bulgarian
bn
Bengali
br
Brezhoneg
bs
Bosanski
ca
Catalan
cs
Czech
csb
Kashubian
cy
Cymraeg
da
Danish
de
Deutsch
el
Greek
en_GB
British English
eo
Esperanto
es
Spanish
et
Estonian
eu
Basque
fa
Persian
fi
Finnish
fr
French
fy
Frisian
ga
Irish
gl
Galician
he
Hebrew
hi
Hindi
hr
Croatian
hu
Hungarian
is
Icelandic
it
Italian
ja
Japanese
kk
Kazakh
km
Khmer
ko
Korean
lt
Lithuanian
lv
Latvian
mk
Macedonian
mn
Mongolian
ms
Malay
nb
Norwegian Bokmal
nds
Low Saxon
nl
Dutch
nn
Norwegian Nynorsk
pa
Punjabi
pl
Polish
pt
Portuguese
pt_BR
Brazilian Portuguese
ro
Romanian
ru
Russian
rw
Kinyarwanda
se
Northern Saami
sk
Slovak
sl
Slovenian
sr
Serbian
sr@Latn
Serbian
ss
Siswati
sv
Svenska
ta
Tamil
te
Telugu
tg
Tajik
th
Thai
tr
Turkish
uk
Ukrainian
uz
Uzbek
uz@cyrillic
Uzbek
vi
Vietnamese
wa
Walloon
zh_CN
Simplified Chinese
zh_TW
Traditional Chinese

@ -1,11 +1,9 @@
This replaces the Slackware package This replaces the Slackware package
############################################################################################### ## from the trinity desktop website, installation instructions ##
libart-lgpl is another dependency package that the Trinity Project has taken over after it was libart-lgpl is another dependency package that the Trinity Project has taken over after it was dropped by its original maintainer, because it needed several patches to prevent crashes.
dropped by its original maintainer, because it needed several patches to prevent crashes.
The version of libart provided by the Trinity Project includes those patches and is intended
to be a replacement for any version of libart currently installed by any distro.
Build this patched version of libart and replace the stock libart installed with the distro.
################ from the trinity desktop website, installation instructions ################## This version of libart provided by the Trinity Project includes those patches and is intended to be a replacement for any version of libart currently installed by any distro.
Build this patched version of libart and replace the stock libart installed with the distro.

@ -38,6 +38,23 @@ untar_fn
## add -march and -mtune options to CFLAGS where they've been set in BUILD-TDE.sh ## add -march and -mtune options to CFLAGS where they've been set in BUILD-TDE.sh
sed -i "s|^QMAKE_CFLAGS[^_].*$|& $SET_march|" mkspecs/linux-g++/qmake.conf sed -i "s|^QMAKE_CFLAGS[^_].*$|& $SET_march|" mkspecs/linux-g++/qmake.conf
## allow building with clang
echo $'--- mkspecs/linux-g++/qmake.conf
+++ mkspecs/linux-g++/qmake.conf
@@ -11 +11 @@
-QMAKE_CC = gcc
+QMAKE_CC = $(COMPILER)
@@ -29 +29 @@
-QMAKE_CXX = g++
+QMAKE_CXX = $(COMPILER_CXX)
@@ -49,2 +49,2 @@
-QMAKE_LINK = g++
-QMAKE_LINK_SHLIB = g++
+QMAKE_LINK = $(COMPILER_CXX)
+QMAKE_LINK_SHLIB = $(COMPILER_CXX)' | while read line
do
patch -p0
done
listdocs_fn listdocs_fn
@ -45,17 +62,15 @@ chown_fn
#cd_builddir_fn #cd_builddir_fn
[[ $COMPILER_CXX == "g++" ]] && NO_EXCEP="-no-exceptions "
echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ echo "yes" | CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \
CC=${COMPILER} \ ./configure \
CXX=${COMPILER_CXX} \ -no-exceptions \
./configure ${NO_EXCEP:-}\ -prefix $TQTDIR-$VERSION \
-prefix $TQTDIR-${VERSION} \
-release \ -release \
-verbose \ -verbose \
-I/usr/include/freetype2 \ -I/usr/include/freetype2 \
-I/usr/include/mysql \ -I/usr/include/mysql \
-L/usr/lib${LIBDIRSUFFIX} \ -L/usr/lib$LIBDIRSUFFIX \
-system-zlib \ -system-zlib \
-qt-imgfmt-png \ -qt-imgfmt-png \
-qt-imgfmt-mng \ -qt-imgfmt-mng \
@ -89,7 +104,7 @@ make install INSTALL_ROOT=$PKG || exit 1
[[ $TQT_DOCS == "no" ]] && rm -rf $PKG$TQTDIR-$VERSION/doc [[ $TQT_DOCS == "no" ]] && rm -rf $PKG$TQTDIR-$VERSION/doc
# Link the shared libraries # Link the shared libraries
( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX} ( cd $PKG$INSTALL_TDE/lib$LIBDIRSUFFIX
for file in $PRGNAM-$VERSION/lib/*.so* ; do for file in $PRGNAM-$VERSION/lib/*.so* ; do
ln -sf $file . ln -sf $file .
done done
@ -100,38 +115,38 @@ installdocs_fn
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
# later changed to TQTDIR # later changed to TQTDIR
sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/${PRGNAM}.sh > $PKG/etc/profile.d/${PRGNAM}.sh sed "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/profile.d/$PRGNAM.sh > $PKG/etc/profile.d/$PRGNAM.sh
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_fn strip_fn
# 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
( cd $PKG${INSTALL_TDE}/bin ( cd $PKG$INSTALL_TDE/bin
for file in tqassistant tqdesigner tqlinguist tqlrelease tqlupdate tqmoc tqm2ts tqmake tqtconfig tquic ; do for file in tqassistant tqdesigner tqlinguist tqlrelease tqlupdate tqmoc tqm2ts tqmake tqtconfig tquic ; do
ln -sf $TQTDIR-$VERSION/bin/$file . ln -sf $TQTDIR-$VERSION/bin/$file .
done done
) )
mkdir -p $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig mkdir -p $PKG$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig
( cd $PKG${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig ( cd $PKG$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig
ln -sf $TQTDIR-${VERSION}/lib/pkgconfig/tqt-mt.pc . ln -sf $TQTDIR-$VERSION/lib/pkgconfig/tqt-mt.pc .
) )
# Add desktop files to launch some programs: # Add desktop files to launch some programs:
mkdir -p $PKG${INSTALL_TDE}/share/applications/tde mkdir -p $PKG$INSTALL_TDE/share/applications/tde
cp -a $SRCDIR/apps/tqtconfig.desktop $PKG${INSTALL_TDE}/share/applications/tde/tqtconfig.desktop cp -a $SRCDIR/apps/tqtconfig.desktop $PKG$INSTALL_TDE/share/applications/tde/tqtconfig.desktop
cp -a $SRCDIR/apps/tqlinguist.desktop $PKG${INSTALL_TDE}/share/applications/tde/tqlinguist.desktop cp -a $SRCDIR/apps/tqlinguist.desktop $PKG$INSTALL_TDE/share/applications/tde/tqlinguist.desktop
cp -a $SRCDIR/apps/tqdesigner.desktop $PKG${INSTALL_TDE}/share/applications/tde/tqdesigner.desktop cp -a $SRCDIR/apps/tqdesigner.desktop $PKG$INSTALL_TDE/share/applications/tde/tqdesigner.desktop
cp -a $SRCDIR/apps/tqassistant.desktop $PKG${INSTALL_TDE}/share/applications/tde/tqassistant.desktop cp -a $SRCDIR/apps/tqassistant.desktop $PKG$INSTALL_TDE/share/applications/tde/tqassistant.desktop
# Symlink tqt3 includes to qt3, to provide it for non-tde software as well =] # Symlink tqt3 includes to qt3, to provide it for non-tde software as well =]
mkdir -p $PKG${INSTALL_TDE}/include mkdir -p $PKG$INSTALL_TDE/include
( cd $PKG${INSTALL_TDE}/include ; ln -sf $TQTDIR-${VERSION}/include qt3 ) ( cd $PKG$INSTALL_TDE/include ; ln -sf $TQTDIR-$VERSION/include qt3 )
# 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)
mkdir_install_fn mkdir_install_fn
@ -161,8 +176,8 @@ $PRGNAM: Home: https://wiki.trinitydesktop.org/Trinity_Desktop_Environment
[[ $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:
if ! grep ${INSTALL_TDE}/lib${LIBDIRSUFFIX} /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then if ! grep $INSTALL_TDE/lib$LIBDIRSUFFIX /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
echo "${INSTALL_TDE}/lib${LIBDIRSUFFIX}" >> /etc/ld.so.conf echo "$INSTALL_TDE/lib$LIBDIRSUFFIX" >> /etc/ld.so.conf
fi fi
if ! grep $TQTDIR-$VERSION/lib /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then if ! grep $TQTDIR-$VERSION/lib /etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
echo "$TQTDIR-$VERSION/lib" >> /etc/ld.so.conf echo "$TQTDIR-$VERSION/lib" >> /etc/ld.so.conf
@ -172,10 +187,10 @@ if [ -x /sbin/ldconfig ]; then
fi fi
# Update PKG_CONFIG_PATH: # Update PKG_CONFIG_PATH:
if ! grep ${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig /etc/profile.d/pkgconfig.sh if ! grep $INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig /etc/profile.d/pkgconfig.sh
then then
sed -i "s|pkgconfig$|pkgconfig:${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig|g" /etc/profile.d/pkgconfig.sh sed -i "s|pkgconfig$|pkgconfig:$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig|g" /etc/profile.d/pkgconfig.sh
sed -i "s|pkgconfig$|pkgconfig:${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig|g" /etc/profile.d/pkgconfig.csh sed -i "s|pkgconfig$|pkgconfig:$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig|g" /etc/profile.d/pkgconfig.csh
fi fi
EOINS EOINS
@ -185,30 +200,30 @@ EOINS
[[ $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:
sed -i "\|${INSTALL_TDE}/lib${LIBDIRSUFFIX}|d" /etc/ld.so.conf sed -i "\|$INSTALL_TDE/lib$LIBDIRSUFFIX|d" /etc/ld.so.conf
sed -i "1i ${INSTALL_TDE}/lib${LIBDIRSUFFIX}" /etc/ld.so.conf sed -i "1i $INSTALL_TDE/lib$LIBDIRSUFFIX" /etc/ld.so.conf
sed -i "1i $TQTDIR-$VERSION/lib" /etc/ld.so.conf sed -i "1i $TQTDIR-$VERSION/lib" /etc/ld.so.conf
if [ -x /sbin/ldconfig ]; then if [ -x /sbin/ldconfig ]; then
/sbin/ldconfig 2> /dev/null /sbin/ldconfig 2> /dev/null
fi fi
# Update PKG_CONFIG_PATH: # Update PKG_CONFIG_PATH:
sed -i "s|${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig||g;s|:$||g" /etc/profile.d/pkgconfig.{,c}sh sed -i "s|$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig||g;s|:$||g" /etc/profile.d/pkgconfig.{,c}sh
sed -i "s|PKG_CONFIG_PATH=|PKG_CONFIG_PATH=${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig:|g;s|::|:|g" /etc/profile.d/pkgconfig.sh sed -i "s|PKG_CONFIG_PATH=|PKG_CONFIG_PATH=$INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig:|g;s|::|:|g" /etc/profile.d/pkgconfig.sh
sed -i "s|PKG_CONFIG_PATH |PKG_CONFIG_PATH ${INSTALL_TDE}/lib${LIBDIRSUFFIX}/pkgconfig:|g;s|::|:|g" /etc/profile.d/pkgconfig.csh sed -i "s|PKG_CONFIG_PATH |PKG_CONFIG_PATH $INSTALL_TDE/lib$LIBDIRSUFFIX/pkgconfig:|g;s|::|:|g" /etc/profile.d/pkgconfig.csh
EOINS EOINS
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
chroot . /usr/bin/update-desktop-database ${INSTALL_TDE}/share/applications > /dev/null 2>&1 chroot . /usr/bin/update-desktop-database $INSTALL_TDE/share/applications > /dev/null 2>&1
fi fi
# Update hicolor theme cache: # Update hicolor theme cache:
if [ -d usr/share/icons/hicolor ]; then if [ -d usr/share/icons/hicolor ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then
chroot . /usr/bin/gtk-update-icon-cache -f -t ${INSTALL_TDE}/share/icons/hicolor 1> /dev/null 2> /dev/null chroot . /usr/bin/gtk-update-icon-cache -f -t $INSTALL_TDE/share/icons/hicolor 1> /dev/null 2> /dev/null
fi fi
fi fi

@ -1,11 +1,13 @@
POTRACE - transform bitmaps into vector graphics POTRACE - transform bitmaps into vector graphics
Potrace is a tool for tracing a bitmap, which means, transforming a Potrace is a tool for tracing a bitmap, which means transforming a
bitmap into a smooth, scalable image. The input is a bitmap (PBM, bitmap into a smooth scalable image. The input is a bitmap (PBM,
PGM, PPM, or BMP), and the default output is one of several vector PGM, PPM, or BMP), and the default output is one of several vector
file formats. A typical use is to create EPS files from scanned file formats.
data, such as company or university logos, handwritten notes, etc.
A typical use is to create EPS files from scanned data, such as
company or university logos, handwritten notes, etc.
The resulting image is not "jaggy" like a bitmap, but smooth. It can The resulting image is not "jaggy" like a bitmap, but smooth. It can
then be rendered at any resolution. then be rendered at any resolution.

@ -36,7 +36,7 @@ Required packages for a basic working TDE are:
i18n support [locale and html/help docs] in the packages is restricted to whatever is selected in BUILD-TDE.sh and, of that, to whatever is available in the package source. i18n support [locale and html/help docs] in the packages is restricted to whatever is selected in BUILD-TDE.sh and, of that, to whatever is available in the package source.
TDM may need some manual setting up - see Core/tdebase/README TDM may need some manual setting up - see Core/tdebase/README, which can also be viewed while running BUILD-TDE.sh if tdebase is selected.
See https://wiki.trinitydesktop.org/How_to_Build_TDE_Core_Modules for more information See https://wiki.trinitydesktop.org/How_to_Build_TDE_Core_Modules for more information

Loading…
Cancel
Save