| 1 | # Contributor: Hannes Braun <[email protected]> |
| 2 | # Maintainer: Hannes Braun <[email protected]> |
| 3 | pkgname=sourcegit |
| 4 | pkgver=8.33 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Open-source & Free Git GUI Client" |
| 7 | url="https://sourcegit-scm.github.io/" |
| 8 | arch="x86_64 aarch64" # blocked by dotnet's native AOT compilation |
| 9 | license="MIT" |
| 10 | makedepends="dotnet8-sdk zlib-dev" |
| 11 | source="https://github.com/sourcegit-scm/sourcegit/archive/v$pkgver/sourcegit-$pkgver.tar.gz" |
| 12 | options="!check" # no test suite |
| 13 | |
| 14 | build() { |
| 15 | dotnet publish src/SourceGit.csproj \ |
| 16 | --no-self-contained \ |
| 17 | --use-current-runtime \ |
| 18 | --configuration Release \ |
| 19 | --output publish |
| 20 | } |
| 21 | |
| 22 | package() { |
| 23 | install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE |
| 24 | |
| 25 | mkdir -p "$pkgdir"/usr/lib "$pkgdir/usr/bin" |
| 26 | rm publish/*.dbg |
| 27 | cp -a publish "$pkgdir"/usr/lib/sourcegit |
| 28 | ln -s ../lib/sourcegit/SourceGit "$pkgdir"/usr/bin/sourcegit |
| 29 | |
| 30 | sed -i 's|^Exec=.*$|Exec=/usr/bin/sourcegit|g' \ |
| 31 | build/resources/_common/applications/sourcegit.desktop |
| 32 | sed -i 's|^Icon=.*$|Icon=/usr/share/icons/hicolor/256x256/apps/sourcegit.png|g' \ |
| 33 | build/resources/_common/applications/sourcegit.desktop |
| 34 | install -Dm644 build/resources/_common/applications/sourcegit.desktop \ |
| 35 | "$pkgdir"/usr/share/applications/sourcegit.desktop |
| 36 | install -Dm644 build/resources/_common/icons/sourcegit.png \ |
| 37 | "$pkgdir"/usr/share/icons/hicolor/256x256/apps/sourcegit.png |
| 38 | } |
| 39 | |
| 40 | sha512sums=" |
| 41 | f73ee46bd0721f529a9d31fb9297a81628b80c20409348e869767cceed8e872be6e58c023c885756d4287f043981dd922ce0d1ffb72aea21adfb33fb346d43b4 sourcegit-8.33.tar.gz |
| 42 | " |