diff options
author | Timothy M Pollard <timp@timp.com.au> | 2020-02-15 14:03:04 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-17 20:09:51 +0700 |
commit | ecdd61e54aa6b403b29376aa4bee4569bcd67fb7 (patch) | |
tree | 1af7be10d3d49d9996312a73c407e6b4318761e5 /desktop/anki/anki.SlackBuild | |
parent | 275cf97eb545e10c16d7d2e2963988d04d407f1e (diff) | |
download | slackbuilds-ecdd61e54aa6b403b29376aa4bee4569bcd67fb7.tar.gz |
desktop/anki: Updated for version 2.1.16.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/anki/anki.SlackBuild')
-rw-r--r-- | desktop/anki/anki.SlackBuild | 31 |
1 files changed, 7 insertions, 24 deletions
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 |