Revised koffice.SlackBuild lcms patch
Added language selection to soundkonverter.SlackBuild
Added patch for magic file identification to tdelibs.SlackBuild
pull/25/head
Ray-V 7 years ago
parent 68c8542c53
commit 9fe3e836bc

@ -69,8 +69,7 @@ patch -p0
done
## fix chalk crashing - set liblcms as a direct dependency - see issue 37 for details
sed -i '2iLCMS1LIBS = -llcms' chalk/Makefile.am
sed -i 's|LDADD) \\$(LIBS)|& \\$(LCMS1LIBS)|' admin/am_edit
sed -i '23iKDE_CXXFLAGS = $(LCMS_LIBS)' chalk/Makefile.am
## building with installation directory /usr - see issue #43 for details
[[ $INSTALL_TDE == /usr ]] && \

@ -33,6 +33,12 @@ getsource_fn
untar_fn
# 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")
listdocs_fn
ltoolupdate_fn
@ -42,18 +48,17 @@ chown_fn
cd_builddir_fn
# Fails with clang =[
LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS} $TQT_INCLUDE_PATH" \
CXXFLAGS="${SLKCFLAGS}" \
LDFLAGS=$SLKLDFLAGS \
CFLAGS="$SLKCFLAGS $TQT_INCLUDE_PATH" \
CXXFLAGS=$SLKCFLAGS \
CC="gcc" \
CXX="g++" \
../configure \
--prefix=${INSTALL_TDE} \
--prefix=$INSTALL_TDE \
--sysconfdir="/etc/trinity" \
--mandir=${INSTALL_TDE}/man \
--mandir=$INSTALL_TDE/man \
--disable-rpath \
--enable-closure \
--build=$ARCH-slackware-linux
--enable-closure
make_fn
@ -71,6 +76,7 @@ echo "
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
$PRGNAM: $PRGNAM (frontend to various audio converters)
$PRGNAM:
$PRGNAM: soundKonverter is frontend to various audio converters.
@ -80,21 +86,21 @@ $PRGNAM: - Audio conversion
$PRGNAM: - Replay Gain calculation
$PRGNAM: - CD ripping
$PRGNAM:
$PRGNAM: With language support for:
$PRGNAM: en $langs
$PRGNAM:
$PRGNAM:
$PRGNAM: Home: https://www.trinitydesktop.org/index.php
" > $PKG/install/slack-desc
cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database:
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
# Update hicolor theme cache:
if [ -d usr/share/icons/hicolor ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
chroot . /usr/bin/gtk-update-icon-cache -f -t ${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
EOINS

@ -45,6 +45,21 @@ do
patch -p0
done
## patch for 'Magic file type detection not working' - bug 2713 - commit f54496a1
echo $'
--- tdeio/tdeio/kmimemagic.cpp
+++ tdeio/tdeio/kmimemagic.cpp
@@ -195,1 +195,1 @@
- int magic_flags = MAGIC_CONTINUE|MAGIC_ERROR|MAGIC_MIME_TYPE/*|MAGIC_DEBUG*/;
+ int magic_flags = MAGIC_ERROR|MAGIC_MIME_TYPE/*|MAGIC_DEBUG*/;
@@ -302,1 +302,1 @@
- int magic_flags = MAGIC_CONTINUE|MAGIC_ERROR|MAGIC_MIME_TYPE/*|MAGIC_DEBUG*/;
+ int magic_flags = MAGIC_ERROR|MAGIC_MIME_TYPE/*|MAGIC_DEBUG*/;
' | while read line
do
patch -p0
done
listdocs_fn
chown_fn

@ -132,7 +132,7 @@ tar -xf ${SOURCE}
+++ admin/cvs.sh
@@ -59 +59 @@
- automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.11* | automake*1.12* | automake*1.13* | automake*1.14* | automake*1.15* )
+ automake*1.6.[1-9] | automake*1.[7-9].* | automake*1.1[0-6].* )
+ automake*1.6.* | automake*1.[7-9]* | automake*1.1[0-6]* )
' | while read line
do
patch -p0

Loading…
Cancel
Save