aboutsummaryrefslogtreecommitdiff
path: root/development/sourcegit
diff options
context:
space:
mode:
Diffstat (limited to 'development/sourcegit')
-rw-r--r--development/sourcegit/LICENSE20
-rw-r--r--development/sourcegit/README5
-rw-r--r--development/sourcegit/doinst.sh14
-rw-r--r--development/sourcegit/slack-desc19
-rw-r--r--development/sourcegit/sourcegit.SlackBuild105
-rw-r--r--development/sourcegit/sourcegit.desktop9
-rw-r--r--development/sourcegit/sourcegit.info10
7 files changed, 182 insertions, 0 deletions
diff --git a/development/sourcegit/LICENSE b/development/sourcegit/LICENSE
new file mode 100644
index 0000000000..442ce085e4
--- /dev/null
+++ b/development/sourcegit/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2025 sourcegit
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/development/sourcegit/README b/development/sourcegit/README
new file mode 100644
index 0000000000..0045f128f2
--- /dev/null
+++ b/development/sourcegit/README
@@ -0,0 +1,5 @@
+sourcegit GUI client for GIT users
+
+Note: This script requires network access during build process
+Note: This app has updates very very often.
+If you need latest please version edit SlackBuild.
diff --git a/development/sourcegit/doinst.sh b/development/sourcegit/doinst.sh
new file mode 100644
index 0000000000..0fb9c8b686
--- /dev/null
+++ b/development/sourcegit/doinst.sh
@@ -0,0 +1,14 @@
+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/sourcegit/slack-desc b/development/sourcegit/slack-desc
new file mode 100644
index 0000000000..4cdf0982e4
--- /dev/null
+++ b/development/sourcegit/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+sourcegit: sourcegit (GUI client for GIT users)
+sourcegit:
+sourcegit: Opensource Git GUI client. Supports SSH access with each remote.
+sourcegit: This software also supports using OpenAI or other AI service
+sourcegit: that has an OpenAI compatible HTTP API to generate commit message.
+sourcegit: You need configurate the service in Preference window
+sourcegit:
+sourcegit:
+sourcegit: HomePage: https://github.com/sourcegit-scm/sourcegit
+sourcegit:
+sourcegit:
diff --git a/development/sourcegit/sourcegit.SlackBuild b/development/sourcegit/sourcegit.SlackBuild
new file mode 100644
index 0000000000..631862f2da
--- /dev/null
+++ b/development/sourcegit/sourcegit.SlackBuild
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+# Slackware build script for sourcegit
+
+# Copyright 2025 Ioannis Anagnostakis GR
+# 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.
+
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=sourcegit
+VERSION=${VERSION:-2025.33}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+
+dotnet publish src/SourceGit.csproj -c Release -r linux-x64 -o publish \
+ -p:DisableAot=true \
+ -p:DisableUpdateDetection=true
+ rm -f publish/SourceGit.pdb
+ pushd publish || exit
+ mv SourceGit "$PRGNAM"
+ popd || exit
+mkdir -p $PKG/opt/SourceGit
+cp -R publish/* $PKG/opt/SourceGit/
+
+mkdir -p $PKG/usr/bin
+echo "#!/bin/bash" > $PKG/usr/bin/"$PRGNAM"
+echo "export LD_LIBRARY_PATH=/opt/SourceGit:\${LD_LIBRARY_PATH} && exec /opt/SourceGit/\"$PRGNAM\"" >> "$PKG"/usr/bin/"$PRGNAM"
+chmod +x $PKG/usr/bin/"$PRGNAM"
+
+mkdir -p "$PKG"/usr/share/icons/hicolor/256x256/apps
+cp build/resources/_common/icons/$PRGNAM.png "$PKG"/usr/share/icons/hicolor/256x256/apps/
+
+mkdir -p "$PKG"/usr/share/applications
+cat $CWD/$PRGNAM.desktop > "$PKG"/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p "$PKG"/usr/doc/$PRGNAM-$VERSION
+cat $CWD/LICENSE > "$PKG"/usr/doc/$PRGNAM-$VERSION/LICENSE
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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
+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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/sourcegit/sourcegit.desktop b/development/sourcegit/sourcegit.desktop
new file mode 100644
index 0000000000..c9b1382e1d
--- /dev/null
+++ b/development/sourcegit/sourcegit.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=SourceGit
+Comment=Open-source & Free Git GUI Client
+Exec=sourcegit
+Icon=sourcegit
+Terminal=false
+Type=Application
+Categories=Development
+MimeType=inode/directory;
diff --git a/development/sourcegit/sourcegit.info b/development/sourcegit/sourcegit.info
new file mode 100644
index 0000000000..31bfcb730f
--- /dev/null
+++ b/development/sourcegit/sourcegit.info
@@ -0,0 +1,10 @@
+PRGNAM="sourcegit"
+VERSION="2025.33"
+HOMEPAGE="https://github.com/sourcegit-scm/sourcegit"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/sourcegit-scm/sourcegit/archive/v2025.33/sourcegit-2025.33.tar.gz"
+MD5SUM_x86_64="bef71decda72cd6ebc12691ac1676294"
+REQUIRES="dotnet-runtime-9.0 dotnet-sdk-9.0"
+MAINTAINER="Ioannis Anagnostakis"
+EMAIL="rizitis@gmail.com"