system/sunflower: Update for 0.5.63

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2022-03-05 20:57:04 -08:00 committed by Willy Sudiarto Raharjo
parent c952507e7f
commit 98766ef8be
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 18 additions and 22 deletions

View file

@ -1,5 +1,2 @@
Sunflower is a small and highly customizable twin-panel file manager
with support for plugins. It contains a built-in terminal.
Sunflower 0.4 requires GTK+ 3.22 (and thus is unsupported on
Slackware 14.2).

View file

@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for sunflower
# Copyright 2020 Isaac Yu <isaacyu1@isaacyu1.com>
# Copyright 2020-2022 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,13 +24,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sunflower
VERSION=${VERSION:-0.3}
SRCVER=${SRCVER:-0.5-63}
VERSION=${VERSION:-$(echo $SRCVER | sed 's/-/\./g')}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
COMMIT=61
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@ -71,7 +70,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf Sunflower
tar xvf $CWD/$PRGNAM-$VERSION-$COMMIT.tgz
tar xvf $CWD/$PRGNAM-$SRCVER.tgz
cd Sunflower
chown -R root:root .
find -L . \
@ -80,24 +79,24 @@ 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 {} \;
# Treat sunflower as an executable
mkdir -p "$PKG/usr/bin"
[ ! -f "$PKG/usr/bin/sunflower" ] \
&& echo -e '#!/bin/bash\nexec python /usr/share/sunflower/Sunflower.py "$@"' > "$PKG/usr/bin/sunflower"
chmod 755 "$PKG/usr/bin/sunflower"
python3 setup.py install --root=$PKG
# Copy other files
mkdir -p "$PKG/usr/share/sunflower"
cp -r Sunflower.py application images translations "$PKG/usr/share/sunflower/"
install -Dm644 Sunflower.desktop "$PKG/usr/share/applications/sunflower.desktop"
install -Dm644 images/sunflower.svg "$PKG/usr/share/pixmaps/sunflower.svg"
# Detect Python 3 version
# Code taken from FabioLolix, at Arch Linux AUR:
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=sunflower
PYVER=$(python3 -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))")
# Copy icons and translations
install -Dm644 images/sunflower.svg "$PKG/usr/lib/python${PYVER}/site-packages/images/sunflower.svg"
install -Dm644 images/sunflower.png "$PKG/usr/share/pixmaps/sunflower.png"
cp -r translations "$PKG/usr/share/locale/"
rmdir $PKG/usr/share/sunflower/translations
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS CHANGES COPYING DEPENDS LICENSE README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS CHANGES COPYING INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="sunflower"
VERSION="0.3"
VERSION="0.5.63"
HOMEPAGE="https://sunflower-fm.org"
DOWNLOAD="https://sunflower-fm.org/pub/sunflower-0.3-61.tgz"
MD5SUM="a5cd28438e83b88e5a4edeb3aacef0c6"
DOWNLOAD="https://sunflower-fm.org/pub/sunflower-0.5-63.tgz"
MD5SUM="33c0bba1ccaf256838f5be12ddad5e7f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""