mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
desktop/anki: Updated for version 2.1.16.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
275cf97eb5
commit
ecdd61e54a
3 changed files with 15 additions and 29 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue