Package Details: sourcegit-bin 8.38-1

Git Clone URL: https://aur.archlinux.org/sourcegit-bin.git (read-only, click to copy)
Package Base: sourcegit-bin
Description: GUI client for GIT users
Upstream URL: https://github.com/sourcegit-scm/sourcegit
Keywords: git git-gui
Licenses: MIT
Conflicts: sourcegit
Provides: sourcegit
Submitter: yataro
Maintainer: yataro
Last Packager: yataro
Votes: 2
Popularity: 0.23
First Submitted: 2024-05-08 15:41 (UTC)
Last Updated: 2024-11-11 06:56 (UTC)

Latest Comments

1 2 Next › Last »

yataro commented on 2024-11-04 03:56 (UTC)

I've decided to make git-credential-manager an optional dependency this update because it's only needed when using user:password authentication on third-party resources (like GitHub), but if you're using an ssh key, this is completely avoided.

yataro commented on 2024-08-19 20:07 (UTC)

Good catch, fixed it

chust commented on 2024-08-19 17:26 (UTC)

deb now use zstd, so in prepare function, the data.tar.xz should be data.tar.zst

SoftExpert commented on 2024-07-27 09:00 (UTC)

Good point about the DEB automatically handled by makepkg, I will pay attention on this. Anyway, thank you for considering my proposal !

yataro commented on 2024-07-27 06:38 (UTC)

I've refactored the pkgbuild to use the .deb package, thanks @SoftExpert!

In your original patch, you extract the already extracted .deb (which is extracted by makepkg) and later extract the already extracted data.tar.xz, just to let you know why it doesn't look exactly as you suggested.

yataro commented on 2024-07-27 05:47 (UTC)

Yes, I know how to handle this properly, I just don't like it. Your argument about size is enough for me, will do that in the meantime.

SoftExpert commented on 2024-07-27 04:52 (UTC) (edited on 2024-07-27 04:53 (UTC) by SoftExpert)

For me there are 2 arguments:

  1. the size (AppImage is 21819712 bytes, while the DEB is 16049836 bytes)

  2. my own personal preference towards the binaries clearly stored in a folder instead of the overhead of the AppImage :)

As for the management of the revision, it can be easily handled with a variable like this _binrev :

...
_name=${pkgname%-bin}
_binrev=1
pkgver=8.22.1
...

source=("https://github.com/sourcegit-scm/sourcegit/releases/download/v${pkgver}/${_name}_${pkgver}-${_binrev}_amd64.deb"

edit: fixed a typo

yataro commented on 2024-07-27 03:37 (UTC)

@SoftExpert

When using DEB packages, the package revision must be taken into account. Although it will probably always be 1 for SourceGit, I chose AppImage to save myself the trouble.

If you can tell me why AppImage is worse than deb, I will refactor the package accordingly.

SoftExpert commented on 2024-07-26 20:38 (UTC)

With this PKGBUILD I can install from the DEB package ...

# Maintainer: Aikawa Yataro <aikawayataro at protonmail dot com>

pkgname=sourcegit-bin
_name=${pkgname%-bin}
pkgver=8.22.1
pkgrel=1
pkgdesc="GUI client for GIT users"
arch=('x86_64')
url='https://github.com/sourcegit-scm/sourcegit'
license=('MIT')
provides=('sourcegit')
conflicts=('sourcegit')
depends=('git' 'git-credential-manager' 'xdg-utils')

#source=("https://github.com/sourcegit-scm/sourcegit/releases/download/v${pkgver}/${_name}-${pkgver}.linux.x86_64.AppImage"
source=("https://github.com/sourcegit-scm/sourcegit/releases/download/v${pkgver}/${_name}_${pkgver}-1_amd64.deb"
        'sourcegit.desktop'
        "https://raw.githubusercontent.com/sourcegit-scm/sourcegit/v${pkgver}/LICENSE")
sha256sums=('39f72ad2741659601410017d128758f37a43c90a7992f2e94baed8943f75b91c'
            'c7b0c0c889af49537161f74f4d4d3b72e13b635e4a10ea43df55348bfae18862'
            '6cef41c8a297f46faafe40016ffcce9d968b3722048b81cd768fdbaa1be02ca1')

package() {
    bsdtar -O -xf ${_name}_${pkgver}-1_amd64.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
    tar xf "${srcdir}"/data.tar.xz

    cp -ar usr/share "${pkgdir}/usr"
    cp -ar opt/${_name} "${pkgdir}/opt"
    rm "${pkgdir}/usr/share/icons/${_name}.png"

#    install -d "$pkgdir/opt/$_name/"
#    install -d "$pkgdir/usr/bin/"

#    cp -r squashfs-root/usr/bin/* "$pkgdir/opt/$_name/"
#    ln -s "/opt/$_name/$_name" "$pkgdir/usr/bin/$_name"

    install -Dm644 sourcegit.desktop "${pkgdir}/usr/share/applications/${_name}.desktop"
#    install -Dm644 squashfs-root/com.sourcegit-scm.SourceGit.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/$_name.png"
    install -Dm644 usr/share/icons/${_name}.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/${_name}.png"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sourcegit.desktop needs to be adjusted to this:

[Desktop Entry]
Name=Source Git
Comment=Open-source & Free Git GUI Client
Exec=/opt/sourcegit/sourcegit
Icon=/usr/share/icons/hicolor/256x256/apps/sourcegit.png
Terminal=false
Type=Application
Categories=Development

SoftExpert commented on 2024-07-26 17:45 (UTC)

Why not use the DEB package instead of AppImage ?