Browse Source

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>
pull/186/head
Caterino Tommaso, T.O.P 3 years ago
committed by Willy Sudiarto Raharjo
parent
commit
48d7ea7cf4
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 7
      desktop/anki/README
  2. 21
      desktop/anki/anki.SlackBuild
  3. 12
      desktop/anki/anki.info

7
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 videos and scientific markup (via LaTeX), the possibilities are
endless. 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.

21
desktop/anki/anki.SlackBuild

@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=anki PRGNAM=anki
VERSION=${VERSION:-2.1.51}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.1.53}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -36,9 +36,7 @@ if [ -z "$ARCH" ]; then
fi fi
# Bail out if not x86_64 # 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 echo "Architecture $ARCH is not supported" >&2
exit 1 exit 1
fi fi
@ -69,10 +67,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 '{}' \+ -execdir rm -rf '{}' \+
find $PKG/usr/bin $PKG/usr/lib/python3.9/site-packages \ 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*" \ -not -name "anki*" \
-execdir rm -rf '{}' \+ -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 # delete line 1, insert python bang
sed -i '1d;2i #!/usr/bin/python3' $PKG/usr/bin/anki 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 \ 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 | 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $CWD/README $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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

12
desktop/anki/anki.info

@ -1,12 +1,12 @@
PRGNAM="anki" PRGNAM="anki"
VERSION="2.1.51"
VERSION="2.1.53"
HOMEPAGE="https://apps.ankiweb.net/" HOMEPAGE="https://apps.ankiweb.net/"
DOWNLOAD="UNSUPPORTED" DOWNLOAD="UNSUPPORTED"
MD5SUM="" 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." MAINTAINER="Caterino Tommaso, T.O.P."
EMAIL="alan_averNOsa@lavaSPAMbit.com (remove NO and SPAM)" EMAIL="alan_averNOsa@lavaSPAMbit.com (remove NO and SPAM)"
Loading…
Cancel
Save