aboutsummaryrefslogtreecommitdiff
path: root/development/smartgit
diff options
context:
space:
mode:
Diffstat (limited to 'development/smartgit')
-rw-r--r--development/smartgit/README4
-rw-r--r--development/smartgit/doinst.sh10
-rw-r--r--development/smartgit/slack-desc8
-rw-r--r--development/smartgit/smartgit55
-rw-r--r--development/smartgit/smartgit.SlackBuild44
-rw-r--r--development/smartgit/smartgit.desktop4
-rw-r--r--development/smartgit/smartgit.info16
7 files changed, 107 insertions, 34 deletions
diff --git a/development/smartgit/README b/development/smartgit/README
index 6d4890a574..584097fdac 100644
--- a/development/smartgit/README
+++ b/development/smartgit/README
@@ -1,2 +1,4 @@
SmartGit is a commercial desktop git client that provides a free
-non-commercial use license.
+non-commercial use license. You need to apply for this license
+in https://www.syntevo.com/register-non-commercial/
+otherwise you can purchase the software.
diff --git a/development/smartgit/doinst.sh b/development/smartgit/doinst.sh
index 5fb28930db..aea0f894eb 100644
--- a/development/smartgit/doinst.sh
+++ b/development/smartgit/doinst.sh
@@ -1,3 +1,13 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/smartgit/slack-desc b/development/smartgit/slack-desc
index b6eb00f2cf..ed4c85d82f 100644
--- a/development/smartgit/slack-desc
+++ b/development/smartgit/slack-desc
@@ -8,10 +8,10 @@
|-----handy-ruler------------------------------------------------------|
smartgit: smartgit (Desktop Git Client)
smartgit:
-smartgit: SmartGit is a commercial desktop git client that provides
-smartgit: a free non-commercial use license.
-smartgit:
-smartgit: Homepage: https://www.syntevo.com/smartgit/
+smartgit: SmartGit is a commercial desktop git client that provides a
+smartgit: free non-commercial use license. You need to apply for this license
+smartgit: in https://www.syntevo.com/register-non-commercial/
+smartgit: otherwise you can purchase the software.
smartgit:
smartgit:
smartgit:
diff --git a/development/smartgit/smartgit b/development/smartgit/smartgit
new file mode 100644
index 0000000000..48a65e7924
--- /dev/null
+++ b/development/smartgit/smartgit
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# Slackware launcher script for smartgit
+
+# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=smartgit
+VERSION=24.1.3
+MAINVERSION=$(echo $VERSION | awk -F '.' '{ print $1"."$2 }')
+PROP="${HOME}/.config/${PRGNAM}/${MAINVERSION}/smartgit.properties"
+
+if ! [ -f $PROP ]; then
+ mkdir -p `dirname $PROP`
+ touch $PROP
+fi
+
+aux=`cat $PROP | grep "smartgit.updateCheck.automatic"`
+if [ "$aux" = "" ]; then
+ echo "smartgit.updateCheck.automatic=false" >> $PROP
+fi
+
+aux=`cat $PROP | grep "smartgit.updateCheck.enabled"`
+if [ "$aux" = "" ]; then
+ echo "smartgit.updateCheck.enabled=false" >> $PROP
+fi
+
+aux=`cat $PROP | grep "smartgit.preferences.updateCheck.visible"`
+if [ "$aux" = "" ]; then
+ echo "smartgit.preferences.updateCheck.visible=false" >> $PROP
+fi
+
+aux=`cat $PROP | grep "smartgit.updateCheck.checkForLatestBuildVisible"`
+if [ "$aux" = "" ]; then
+ echo "smartgit.updateCheck.checkForLatestBuildVisible=false" >> $PROP
+fi
+
+/opt/$PRGNAM/bin/$PRGNAM.sh "$@"
diff --git a/development/smartgit/smartgit.SlackBuild b/development/smartgit/smartgit.SlackBuild
index bb4d1ccd34..9a4aa0b81c 100644
--- a/development/smartgit/smartgit.SlackBuild
+++ b/development/smartgit/smartgit.SlackBuild
@@ -1,6 +1,8 @@
#!/bin/bash
# Slackware Package Build Script for SmartGit
+
+# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
# Copyright 2014 Miguel De Anda
# All rights reserved.
#
@@ -23,16 +25,20 @@
cd $(dirname $0) ; CWD=$(pwd)
-PRGNAM="smartgit"
-VERSION=${VERSION:-7.0.3}
+PRGNAM=smartgit
+VERSION=${VERSION:-24.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-ARCH=noarch
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -41,8 +47,6 @@ fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-
-#they use _ instead of periods...
FILE_VERSION=${VERSION//./_}
set -e
@@ -50,7 +54,7 @@ set -e
rm -rf $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-generic-$FILE_VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-linux-$FILE_VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
find -L . \
@@ -59,26 +63,28 @@ 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 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -R changelog.txt known-issues.txt readme-linux.txt smartgit.url license.html licenses $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/share/$PRGNAM
-cp -R lib bin $PKG/usr/share/$PRGNAM
+mkdir -p $PKG/opt/$PRGNAM
+cp -avxu bin dictionaries git jre lib $PKG/opt/$PRGNAM
mkdir -p $PKG/usr/share/pixmaps
cp bin/$PRGNAM-128.png $PKG/usr/share/pixmaps/$PRGNAM.png
-
mkdir -p $PKG/usr/share/applications
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+mkdir -p $PKG/usr/bin
+install -D -m 0755 $CWD/smartgit $PKG/usr/bin/$PRGNAM
+
+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
+mv readme-linux.txt smartgit.url license.html licenses $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-mkdir -p $PKG/usr/bin
-cd $PKG/usr/bin
-ln -s ../share/$PRGNAM/bin/$PRGNAM.sh $PRGNAM
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/smartgit/smartgit.desktop b/development/smartgit/smartgit.desktop
index 60dff074ea..93758e7d5a 100644
--- a/development/smartgit/smartgit.desktop
+++ b/development/smartgit/smartgit.desktop
@@ -2,11 +2,11 @@
Version=1.0
Name=SmartGit
Keywords=git;hg;svn;mercurial;subversion
-GenericName=Git&Hg-Client + SVN-support
+GenericName=Git & Hg-Client + SVN-support
Type=Application
Categories=Development;RevisionControl
Terminal=false
StartupNotify=true
-Exec="/usr/share/smartgit/bin/smartgit.sh" %u
+Exec=smartgit %u
MimeType=x-scheme-handler/smartgit
Icon=smartgit
diff --git a/development/smartgit/smartgit.info b/development/smartgit/smartgit.info
index 6fa5a8ff74..1842add5dc 100644
--- a/development/smartgit/smartgit.info
+++ b/development/smartgit/smartgit.info
@@ -1,10 +1,10 @@
PRGNAM="smartgit"
-VERSION="7.0.3"
+VERSION="24.1.3"
HOMEPAGE="https://www.syntevo.com/smartgit/"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/smartgit-generic-7_0_3.tar.gz"
-MD5SUM="a33819ab59229049d5b847d78b72c0c0"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="zulu-openjdk8"
-MAINTAINER="Miguel De Anda"
-EMAIL="miguel@thedeanda.com"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://downloads.syntevo.com/downloads/smartgit/smartgit-linux-24_1_3.tar.gz"
+MD5SUM_x86_64="0b0cd3b94e43fbabc24a466720b85c56"
+REQUIRES=""
+MAINTAINER="Antonio Leal"
+EMAIL="antonioleal@yahoo.com"