aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2017-09-24 10:27:53 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-24 10:27:53 +0100
commita8b73487f5fabb6d05c43e4033d93eb4f30c55ea (patch)
treefc4a3c67315cb95277338e839710dbd123ac8f49
parent6df589e5e54126798d6f22651d193e7b9dbe6025 (diff)
academic/Mnemosyne: Updated for version 2.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--academic/Mnemosyne/Mnemosyne.SlackBuild12
-rw-r--r--academic/Mnemosyne/Mnemosyne.info8
-rw-r--r--academic/Mnemosyne/doinst.sh7
3 files changed, 17 insertions, 10 deletions
diff --git a/academic/Mnemosyne/Mnemosyne.SlackBuild b/academic/Mnemosyne/Mnemosyne.SlackBuild
index 5d744ed13b9c3..0245781426ca1 100644
--- a/academic/Mnemosyne/Mnemosyne.SlackBuild
+++ b/academic/Mnemosyne/Mnemosyne.SlackBuild
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Mnemosyne
-VERSION=${VERSION:-2.3.4}
+VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -69,8 +69,8 @@ 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 {} \;
-python setup.py build
-python setup.py install --prefix=/usr --root=$PKG
+python3 setup.py build
+python3 setup.py install --prefix=/usr --root=$PKG
# Now I will remove this icon which is not of 48x48 pixels size
rm $PKG/usr/share/icons/mnemosyne.png
diff --git a/academic/Mnemosyne/Mnemosyne.info b/academic/Mnemosyne/Mnemosyne.info
index 307dd3c138570..2247dc0b2e58b 100644
--- a/academic/Mnemosyne/Mnemosyne.info
+++ b/academic/Mnemosyne/Mnemosyne.info
@@ -1,10 +1,10 @@
PRGNAM="Mnemosyne"
-VERSION="2.3.4"
+VERSION="2.5"
HOMEPAGE="http://www.mnemosyne-proj.org/download-mnemosyne.php"
-DOWNLOAD="http://downloads.sourceforge.net/project/mnemosyne-proj/mnemosyne/mnemosyne-2.3.4/Mnemosyne-2.3.4.tar.gz"
-MD5SUM="1fa437d173de5b9c822fac0f46a05062"
+DOWNLOAD="https://downloads.sourceforge.net/project/mnemosyne-proj/mnemosyne/mnemosyne-2.5/Mnemosyne-2.5.tar.gz"
+MD5SUM="fcae31625523437049cc64c7b0c226b8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="CherryPy matplotlib WebOb"
+REQUIRES="python3-PyQt5 PyOpenGL CherryPy matplotlib WebOb"
MAINTAINER="R. S. Ananda Murthy"
EMAIL="rsamurti@gmail.com"
diff --git a/academic/Mnemosyne/doinst.sh b/academic/Mnemosyne/doinst.sh
index 9a8ded3c60349..0fb9c8b6867f0 100644
--- a/academic/Mnemosyne/doinst.sh
+++ b/academic/Mnemosyne/doinst.sh
@@ -5,3 +5,10 @@ fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/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
+