diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-27 20:14:52 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-27 22:29:06 -0600 |
commit | a2f24b242213c1cc07a9f91bea9dc9814630ac30 (patch) | |
tree | d53213458fa7c3bcce4dbe448d7e73e91310bb0c /academic/kurso | |
parent | 84d5d3df63c93d65d3412220a073df981724b39d (diff) |
academic/kurso: Updated for version 5.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'academic/kurso')
-rw-r--r-- | academic/kurso/doinst.sh | 5 | ||||
-rw-r--r-- | academic/kurso/icons/kurso128.png | bin | 21753 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso16.png | bin | 974 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso24.png | bin | 1768 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso256.png | bin | 61331 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso32.png | bin | 2656 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso48.png | bin | 5287 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/icons/kurso64.png | bin | 7608 -> 0 bytes | |||
-rw-r--r-- | academic/kurso/kurso | 5 | ||||
-rw-r--r-- | academic/kurso/kurso.SlackBuild | 94 | ||||
-rw-r--r-- | academic/kurso/kurso.desktop | 2 | ||||
-rw-r--r-- | academic/kurso/kurso.info | 12 |
12 files changed, 21 insertions, 97 deletions
diff --git a/academic/kurso/doinst.sh b/academic/kurso/doinst.sh index 65c7e2eeb9aa5..4e8ba7071dea7 100644 --- a/academic/kurso/doinst.sh +++ b/academic/kurso/doinst.sh @@ -2,8 +2,3 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi -if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then - if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 - fi -fi diff --git a/academic/kurso/icons/kurso128.png b/academic/kurso/icons/kurso128.png Binary files differdeleted file mode 100644 index 86b72c8a211ed..0000000000000 --- a/academic/kurso/icons/kurso128.png +++ /dev/null diff --git a/academic/kurso/icons/kurso16.png b/academic/kurso/icons/kurso16.png Binary files differdeleted file mode 100644 index 0ca94f4ca9afd..0000000000000 --- a/academic/kurso/icons/kurso16.png +++ /dev/null diff --git a/academic/kurso/icons/kurso24.png b/academic/kurso/icons/kurso24.png Binary files differdeleted file mode 100644 index 0151c02f30f5e..0000000000000 --- a/academic/kurso/icons/kurso24.png +++ /dev/null diff --git a/academic/kurso/icons/kurso256.png b/academic/kurso/icons/kurso256.png Binary files differdeleted file mode 100644 index a62d795335810..0000000000000 --- a/academic/kurso/icons/kurso256.png +++ /dev/null diff --git a/academic/kurso/icons/kurso32.png b/academic/kurso/icons/kurso32.png Binary files differdeleted file mode 100644 index 5425b260a124d..0000000000000 --- a/academic/kurso/icons/kurso32.png +++ /dev/null diff --git a/academic/kurso/icons/kurso48.png b/academic/kurso/icons/kurso48.png Binary files differdeleted file mode 100644 index c3cf1f56b8361..0000000000000 --- a/academic/kurso/icons/kurso48.png +++ /dev/null diff --git a/academic/kurso/icons/kurso64.png b/academic/kurso/icons/kurso64.png Binary files differdeleted file mode 100644 index c63abae818d29..0000000000000 --- a/academic/kurso/icons/kurso64.png +++ /dev/null diff --git a/academic/kurso/kurso b/academic/kurso/kurso index 21a08a19ceeae..335c8a3ea3696 100644 --- a/academic/kurso/kurso +++ b/academic/kurso/kurso @@ -1,4 +1,3 @@ #!/bin/sh - -export QT_PLUGIN_PATH=/usr/lib64/kde4/plugins -/usr/bin/kurso4 +cd /opt/kurso +./kursokape diff --git a/academic/kurso/kurso.SlackBuild b/academic/kurso/kurso.SlackBuild index 5f762d4b83763..227840e5a129d 100644 --- a/academic/kurso/kurso.SlackBuild +++ b/academic/kurso/kurso.SlackBuild @@ -25,21 +25,15 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=kurso -VERSION=${VERSION:-4.1.2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-5.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCTARNAM=kurso4_source -SRCNAM=kurso4 -BINTARNAM=kurso.i386 -BINNAM="kurso-de-esperanto-4" +ARCH=$( uname -m ) -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac +if [ "${ARCH}" != "x86_64" ]; then + echo "Architecture ${ARCH} is not supported." + exit 1 fi # If the variable PRINT_PACKAGE_NAME is set, then this script will report what @@ -54,68 +48,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM -tar xvf $CWD/$SRCTARNAM.tar.gz -cd $SRCNAM -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 -o -perm 700 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -sed -i -e '/.*Loko = QApplication.*/i \ /*\r' \ - -e '/Loko.append.*/a \ */\r\n Loko = "/usr/share/kurso/";\r' \ - main.cpp - -qmake \ - QMAKE_CFLAGS="$SLKCFLAGS" \ - QMAKE_CXXFLAGS="$SLKCFLAGS" - -make - -mkdir -p $PKG/usr/bin -install -m 755 -t $PKG/usr/bin kurso4 -mkdir -p $PKG/usr/share/kurso -# stiloj and tradukoj are embedded into the binary but they aren't -# being called properly, so it will look for them in the data dir. :( -# Patching this isn't worth the effort. -mv -f stiloj $PKG/usr/share/kurso/ -mv -f tradukoj $PKG/usr/share/kurso/ -cd $PKG/usr/share/kurso/tradukoj/kiel -for i in *.html -do - ln -s $i kiel_${i} -done -cd $PKG/usr/share/kurso/tradukoj/kio -for i in *.html -do - ln -s $i kio_${i} -done - -cd $TMP -rm -rf $BINNAM -tar xvf $CWD/$BINTARNAM.tar.gz -cd $BINNAM +rm -rf ${PRGNAM}_${ARCH} +tar xvf $CWD/${PRGNAM}_${ARCH}.tar.gz +cd ${PRGNAM}_${ARCH} chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -123,20 +63,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mv -f sonoj $PKG/usr/share/kurso/ -mv -f video $PKG/usr/share/kurso/ - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -install -m 755 -t $PKG/usr/bin $CWD/kurso -sed -i "s/64/${LIBDIRSUFFIX}/" $PKG/usr/bin/kurso +mkdir -p $PKG/opt/kurso +cp -a kursokape sonoj video $PKG/opt/kurso/ -for i in 16 24 32 48 64 128 256 -do - install -D -m 0644 $CWD/icons/kurso${i}.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/kurso.png -done +install -D -m 0644 kurso_256.png $PKG/usr/share/pixmaps/kurso.png install -D -m 0644 $CWD/kurso.desktop $PKG/usr/share/applications/kurso.desktop +install -D -m 0755 $CWD/kurso $PKG/usr/bin/kurso mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/academic/kurso/kurso.desktop b/academic/kurso/kurso.desktop index bfdc44c3eb1fa..2fed560086860 100644 --- a/academic/kurso/kurso.desktop +++ b/academic/kurso/kurso.desktop @@ -6,4 +6,4 @@ Type=Application Exec=kurso Icon=kurso Terminal=false -Categories=Education;Languages;KDE;Qt; +Categories=Education;Languages;Qt; diff --git a/academic/kurso/kurso.info b/academic/kurso/kurso.info index e05c18b257e52..e55ace9f9cf5f 100644 --- a/academic/kurso/kurso.info +++ b/academic/kurso/kurso.info @@ -1,12 +1,10 @@ PRGNAM="kurso" -VERSION="4.1.2" +VERSION="5.2" HOMEPAGE="http://www.kurso.com.br/index.php?en" -DOWNLOAD="http://kurso.com.br/kurso4_source.tar.gz \ - http://kurso.com.br/kurso.i386.tar.gz" -MD5SUM="a92fb13a1ec6734d0d254a8733b610b3 \ - fa580797b4fb2ee34b30dccc79fb4b8d" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" +DOWNLOAD="" +MD5SUM="" +DOWNLOAD_x86_64="https://ponce.cc/slackware/sources/repo/kurso_x86_64.tar.gz" +MD5SUM_x86_64="ed6cc642b8c7b368516b871377b5af4d" REQUIRES="" MAINTAINER="T3slider" EMAIL="t3slider@gmail.com" |