blob: 80f12336c78743400bd1fe8997bb1f41dd8901fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Aikawa Yataro <aikawayataro at protonmail dot com>
pkgname=sourcegit
pkgver=8.23
pkgrel=1
pkgdesc="GUI client for GIT users"
arch=('x86_64')
url='https://github.com/sourcegit-scm/sourcegit'
license=('MIT')
depends=('dotnet-runtime-8.0' 'git' 'git-credential-manager' 'xdg-utils')
makedepends=('dotnet-sdk-8.0' 'desktop-file-utils')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v$pkgver.tar.gz"
'disable-aot.patch')
sha256sums=('ffda583902d0db220717a639d5f757db50e1653100509709fb60564e9bf7dfe7'
'e155647c72614f7f01b453e444b6cdd1f68adf8fbb68ddbe52517cea18142577')
prepare() {
cd "$pkgname-$pkgver"
patch --forward --strip=1 --input=../disable-aot.patch
desktop-file-edit build/resources/_common/applications/sourcegit.desktop \
--set-icon=sourcegit --set-key=Exec --set-value=sourcegit
}
build() {
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
cd "$pkgname-$pkgver"
dotnet publish src/SourceGit.csproj -c Release -r linux-x64 -o publish
rm -f publish/SourceGit.pdb
mv publish/SourceGit "publish/$pkgname"
}
package() {
install -d "$pkgdir/opt/$pkgname/"
install -d "$pkgdir/usr/bin/"
cp -Pr "$pkgname-$pkgver/publish/"* "$pkgdir/opt/$pkgname/"
ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname-$pkgver/build/resources/_common/applications/sourcegit.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$pkgname-$pkgver/build/resources/_common/icons/sourcegit.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|