aboutsummaryrefslogtreecommitdiff
path: root/desktop/anki
diff options
context:
space:
mode:
authorCaterino Tommaso, T.O.P <alan_averNOsa@lavaSPAMbit.com (remove NO and SPAM)>2022-06-23 00:07:57 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-02 09:55:30 +0700
commit48d7ea7cf42f0ac07666742bc94f0cbcb606ca55 (patch)
tree6d599dea2b7bae28f6d092765b1f8daad410cba3 /desktop/anki
parent13a0a7446addc92a71c4294cbf8db790c90ba37d (diff)
desktop/anki: Updated for version 2.1.53.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/anki')
-rw-r--r--desktop/anki/README7
-rw-r--r--desktop/anki/anki.SlackBuild21
-rw-r--r--desktop/anki/anki.info12
3 files changed, 17 insertions, 23 deletions
diff --git a/desktop/anki/README b/desktop/anki/README
index c12fb2faf39f..74cab55686fa 100644
--- a/desktop/anki/README
+++ b/desktop/anki/README
@@ -8,7 +8,6 @@ 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 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.
+For audio recording support PyAudio 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 6d728fcd9909..59c5251bcc63 100644
--- a/desktop/anki/anki.SlackBuild
+++ b/desktop/anki/anki.SlackBuild
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=anki
-VERSION=${VERSION:-2.1.51}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1.53}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -36,9 +36,7 @@ if [ -z "$ARCH" ]; then
fi
# Bail out if not x86_64
-if [ "$ARCH" = x86_64 ]; then
- LIBDIRSUFFIX=64
-else
+if [ "$ARCH" != x86_64 ]; then
echo "Architecture $ARCH is not supported" >&2
exit 1
fi
@@ -69,10 +67,7 @@ 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 {} \;
-find $PKG/usr \
- -mindepth 1 -maxdepth 1 \
- -not -name lib \
- -not -name bin \
+find $PKG/usr -not -name lib -not -name bin -mindepth 1 -maxdepth 1 \
-execdir rm -rf '{}' \+
find $PKG/usr/bin $PKG/usr/lib/python3.9/site-packages \
@@ -81,17 +76,17 @@ find $PKG/usr/bin $PKG/usr/lib/python3.9/site-packages \
-not -name "anki*" \
-execdir rm -rf '{}' \+
-mv -v $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
+mv -v $PKG/usr/lib $PKG/usr/lib64
# delete line 1, insert python bang
sed -i '1d;2i #!/usr/bin/python3' $PKG/usr/bin/anki
-install -vD -m 0644 $CWD/anki/anki.{png,xpm} -t $PKG/usr/share/pixmaps
-install -vD -m 0644 $CWD/anki/anki.desktop -t $PKG/usr/share/applications
-
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 -vD -m 0644 $CWD/anki/anki.{png,xpm} -t $PKG/usr/share/pixmaps
+install -vD -m 0644 $CWD/anki/anki.desktop -t $PKG/usr/share/applications
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $CWD/README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/desktop/anki/anki.info b/desktop/anki/anki.info
index bce902f5d658..ca46c3bd8170 100644
--- a/desktop/anki/anki.info
+++ b/desktop/anki/anki.info
@@ -1,12 +1,12 @@
PRGNAM="anki"
-VERSION="2.1.51"
+VERSION="2.1.53"
HOMEPAGE="https://apps.ankiweb.net/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://files.pythonhosted.org/packages/19/71/6622dcad9d1c6988e463f8c51ee8e61ffcf3dbdafa2772d08d0ec01c8069/anki-2.1.51-cp39-abi3-manylinux_2_28_x86_64.whl \
-https://files.pythonhosted.org/packages/77/06/3ee5c1ee4d71f1fe96bb961a1d8104dcdfb492eb6a27f9f3a73883395eb4/aqt-2.1.51-py3-none-any.whl"
-MD5SUM_x86_64="98ffc4b8dcd0dc4f58f1b9f9bf3cb752 \
-703e288310b82dda9677f549f2f6acc1"
-REQUIRES="python3-PyQtWebEngine send2trash decorator python3-jsonschema BeautifulSoup4 Flask python3-Flask-Cors python3-waitress protobuf3"
+DOWNLOAD_x86_64="https://files.pythonhosted.org/packages/92/19/e9ce28d505cb6c3822037292615244b4ab307810bda3d12015d2f9b5da13/anki-2.1.53-cp39-abi3-manylinux_2_28_x86_64.whl \
+https://files.pythonhosted.org/packages/a6/e3/8a5dea0f107e512fb40165b64ab75766f74c72ac95e6a8a64fe3b920e0d1/aqt-2.1.53-py3-none-any.whl"
+MD5SUM_x86_64="6bdfc0d555bf87f91bef15447e748aef \
+819dddba31c35dd03b09454c95ff1c7c"
+REQUIRES="python3-PyQtWebEngine send2trash decorator Markdown python3-jsonschema BeautifulSoup4 Flask python3-waitress protobuf3"
MAINTAINER="Caterino Tommaso, T.O.P."
EMAIL="alan_averNOsa@lavaSPAMbit.com (remove NO and SPAM)"