summaryrefslogtreecommitdiffstats
path: root/desktop/anki/anki.SlackBuild
diff options
context:
space:
mode:
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 6d728fcd99..59c5251bcc 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