Advertisement
Guest User

Untitled

a guest
Jan 25th, 2025
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. # Maintainer: Aikawa Yataro <aikawayataro at protonmail dot com>
  2.  
  3. pkgname=sourcegit
  4. pkgver=2025.03
  5. pkgrel=2
  6. pkgdesc="GUI client for GIT users"
  7. arch=('x86_64')
  8. url='https://github.com/sourcegit-scm/sourcegit'
  9. license=('MIT')
  10. depends=('dotnet-runtime-9.0' 'git' 'xdg-utils')
  11. optdepends=('git-credential-manager: third-party authentication support')
  12. makedepends=('dotnet-sdk-9.0' 'desktop-file-utils')
  13.  
  14. source=("$pkgname-$pkgver.tar.gz::https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v$pkgver.tar.gz")
  15. sha256sums=('4204be43aa921ea9a37e0d5613574cfbad77c56420b5efb71b16a8036874bf13')
  16.  
  17.  
  18.  
  19. prepare() {
  20. cd "$pkgname-$pkgver"
  21. desktop-file-edit build/resources/_common/applications/sourcegit.desktop \
  22. --set-icon=sourcegit --set-key=Exec --set-value=sourcegit
  23. }
  24.  
  25. build() {
  26. export DOTNET_CLI_TELEMETRY_OPTOUT=1
  27. export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
  28.  
  29. cd "$pkgname-$pkgver"
  30.  
  31. dotnet publish src/SourceGit.csproj -c Release -r linux-x64 -o publish \
  32. -p:DisableAot=true \
  33. -p:DisableUpdateDetection=true
  34. rm -f publish/SourceGit.pdb
  35. mv publish/SourceGit "publish/$pkgname"
  36. }
  37.  
  38. package() {
  39. cd "$pkgname-$pkgver"
  40.  
  41. install -d "$pkgdir/opt/$pkgname/"
  42. install -d "$pkgdir/usr/bin/"
  43.  
  44. cp -Pr "publish/"* "$pkgdir/opt/$pkgname/"
  45. ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
  46.  
  47. install -Dm644 "build/resources/_common/applications/sourcegit.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  48. install -Dm644 "build/resources/_common/icons/sourcegit.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
  49. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  50. }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement