diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2024-02-13 22:16:30 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-17 09:07:16 +0700 |
commit | 33e7dbcd13e5707b813eb41abe0e545b2dbcdf22 (patch) | |
tree | c6198bc085bea1b928990b8dc2c4b50d172f0c89 /desktop/sun/sun.SlackBuild | |
parent | ac5ab3a6f99515aecd3f6372766545c5c91f5c29 (diff) |
desktop/sun: Updated for version 1.6.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/sun/sun.SlackBuild')
-rw-r--r-- | desktop/sun/sun.SlackBuild | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/desktop/sun/sun.SlackBuild b/desktop/sun/sun.SlackBuild index 86e70b57333d3..ed30f5c3d9e3c 100644 --- a/desktop/sun/sun.SlackBuild +++ b/desktop/sun/sun.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sun -# Copyright 2015-2023 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2015-2024 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sun -VERSION=${VERSION:-1.5.2} +VERSION=${VERSION:-1.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,22 +79,27 @@ 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 {} \; -python3 setup.py install --root=$PKG +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl -# Install autostart enable-disable daemon script -mkdir -p $PKG/usr/sbin -cp sbin/sun_daemon $PKG/usr/sbin +# Install configuration and data files +mkdir -p $PKG/usr/sbin $PKG/etc/$PRGNAM $PKG/usr/share/pixmaps/ $PKG/usr/share/applications/ \ + $PKG/etc/xdg/autostart/ -# Install configuration file -mkdir -p $PKG/etc/$PRGNAM install -D -m0644 conf/sun.toml $PKG/etc/sun/sun.toml.new install -D -m0644 conf/repositories.toml $PKG/etc/sun/repositories.toml.new +mv $PKG/usr/bin/sun-autostart $PKG/usr/sbin/ +cp -a extra/icon/sun.png $PKG/usr/share/pixmaps/ +cp -a extra/desktop/sun.desktop $PKG/usr/share/applications/ +cp -a extra/xdg/sun-daemon.desktop.sample $PKG/etc/xdg/autostart/ +cp -a extra/xdg/sun.desktop $PKG/etc/xdg/autostart/ + 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 -a README.rst CHANGES.md LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md CHANGELOG.md LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |