summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTimothy M Pollard <timp@timp.com.au>2020-02-15 14:03:04 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-17 20:09:51 +0700
commitecdd61e54aa6b403b29376aa4bee4569bcd67fb7 (patch)
tree1af7be10d3d49d9996312a73c407e6b4318761e5 /desktop
parent275cf97eb545e10c16d7d2e2963988d04d407f1e (diff)
downloadslackbuilds-ecdd61e54aa6b403b29376aa4bee4569bcd67fb7.tar.gz
desktop/anki: Updated for version 2.1.16.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/anki/README5
-rw-r--r--desktop/anki/anki.SlackBuild31
-rw-r--r--desktop/anki/anki.info8
3 files changed, 15 insertions, 29 deletions
diff --git a/desktop/anki/README b/desktop/anki/README
index 5a14846570..81835b3c80 100644
--- a/desktop/anki/README
+++ b/desktop/anki/README
@@ -7,4 +7,7 @@ Anyone who needs to remember things in their daily life can benefit
from Anki. Since it is content-agnostic and supports images, audio,
videos and scientific markup (via LaTeX), the possibilities are endless.
-For audio recording support PyAudio and lame are required.
+For audio recording support PyAudio built against Python 3 (not currently
+available from SlackBuilds) and lame are required. mpv is recommended for
+video play-back, but mplayer (including in Slackware by default) can be used
+instead.
diff --git a/desktop/anki/anki.SlackBuild b/desktop/anki/anki.SlackBuild
index cffdd710ec..869ef2703a 100644
--- a/desktop/anki/anki.SlackBuild
+++ b/desktop/anki/anki.SlackBuild
@@ -5,7 +5,7 @@
# Written by Giuseppe Scalzi <giuseppe[at]osgate[dot]org>
PRGNAM=anki
-VERSION=${VERSION:-2.0.52}
+VERSION=${VERSION:-2.1.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH="noarch"
@@ -30,34 +30,17 @@ 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 {} \;
-# Doing this manually since the included Makefile isn't very flexible (it always
-# installs the anki binary as ${DESTDIR}${PREFIX}/local/bin/anki for example),
-# and there isn't a lot of things that need copying.
-
-mkdir -p $PKG/usr/bin
-cp -a runanki $PKG/usr/bin/anki
-
-mkdir -p $PKG/usr/share/pixmaps
-cp -a anki.xpm anki.png $PKG/usr/share/pixmaps/
-
-mkdir -p $PKG/usr/share/mime/packages
-cat anki.xml > $PKG/usr/share/mime/packages/anki.xml
-
-mkdir -p $PKG/usr/share/applications
-cp -a anki.desktop $PKG/usr/share/applications/
-
-mkdir -p $PKG/usr/man/man1
-cp -a anki.1 $PKG/usr/man/man1
+DESTDIR=$PKG make install
+# Move the man file to the correct directory and gzip it
+mv $PKG/usr/share/man/ $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+# `make install` puts the docs in the wrong place for Slackware
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE LICENSE.logo README README.development $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/share/doc/anki/* $PKG/usr/doc/$PRGNAM-$VERSION
-mkdir -p $PKG/usr/share/anki
-cp -av anki aqt designer locale oldanki thirdparty $PKG/usr/share/anki/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/desktop/anki/anki.info b/desktop/anki/anki.info
index 60a4822fb2..b96d19c6db 100644
--- a/desktop/anki/anki.info
+++ b/desktop/anki/anki.info
@@ -1,10 +1,10 @@
PRGNAM="anki"
-VERSION="2.0.52"
+VERSION="2.1.16"
HOMEPAGE="http://www.ankisrs.net/"
-DOWNLOAD="https://apps.ankiweb.net/downloads/archive/anki-2.0.52-source.tgz"
-MD5SUM="1dd9808e16f66e2490e5a6d30d0463a5"
+DOWNLOAD="https://apps.ankiweb.net/downloads/archive/anki-2.1.16-source.tgz"
+MD5SUM="fb79abdae4c6cc10d5d8c5bef0c059f6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="BeautifulSoup SQLAlchemy matplotlib simplejson"
+REQUIRES="python3-PyQt5 send2trash python3-certifi python-requests decorator Markdown python3-jsonschema python-distro BeautifulSoup4"
MAINTAINER="Timothy Pollard"
EMAIL="sbo@timp.com.au"