aboutsummaryrefslogtreecommitdiff
path: root/desktop/anki/anki.SlackBuild
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/anki.SlackBuild
parent13a0a7446addc92a71c4294cbf8db790c90ba37d (diff)
downloadslackbuilds-48d7ea7cf42f0ac07666742bc94f0cbcb606ca55.tar.xz
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/anki.SlackBuild')
-rw-r--r--desktop/anki/anki.SlackBuild21
1 files changed, 8 insertions, 13 deletions
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