diff options
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 cffdd710ec73..869ef2703a22 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 |