Advertisement
Guest User

Untitled

a guest
Apr 14th, 2022
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 8f0e802..4d6c3cc 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -1,12 +1,13 @@
  6. # Maintainer: Chinmay Dalal <w5vwg64uy@relay.firefox.com>
  7. pkgname=gotktrix-git
  8. license=('AGPL3')
  9. -pkgver=r334.f46ae83
  10. -pkgrel=2
  11. +pkgver=r361.6e72a40
  12. +pkgrel=1.1
  13. pkgdesc="Matrix client in Go and GTK4"
  14. arch=('x86_64')
  15. url="https://github.com/diamondburned/${pkgname%-git}"
  16. -makedepends=("go")
  17. +makedepends=("go" 'git' 'cairo' 'gobject-introspection' 'graphene' 'pango' 'gdk-pixbuf2')
  18. +depends=('gobject-introspection-runtime' 'gtk4')
  19. provides=("${pkgname%-git}")
  20. conflicts=("${pkgname%-git}")
  21. source=($pkgname::"git+${url}.git")
  22. @@ -18,21 +19,31 @@ pkgver() {
  23. }
  24.  
  25. build() {
  26. - export GOPATH="$srcdir/go"
  27. - cd "$srcdir/$pkgname"
  28. -
  29. - go build \
  30. - -trimpath \
  31. - -buildmode=pie \
  32. - -mod=readonly \
  33. - -modcacherw \
  34. - -o "${pkgname%-git}" .
  35. +# export GOPATH="$srcdir/go"
  36. +# cd "$srcdir/$pkgname"
  37. +
  38. + cd "$pkgname"
  39. +
  40. + export CGO_CPPFLAGS="${CPPFLAGS}"
  41. + export CGO_CFLAGS="${CFLAGS}"
  42. + export CGO_CXXFLAGS="${CXXFLAGS}"
  43. + export CGO_LDFLAGS="${LDFLAGS}"
  44. + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
  45. +
  46. + go build -o "${pkgname%-git}" .
  47. +
  48. + # go build \
  49. + # -trimpath \
  50. + # -buildmode=pie \
  51. + # -mod=readonly \
  52. + # -modcacherw \
  53. + # -o "${pkgname%-git}" .
  54. }
  55.  
  56.  
  57. package() {
  58. - cd "$srcdir/$pkgname"
  59. - export GOPATH="$srcdir/go"
  60. - echo $PWD
  61. + cd "$pkgname"
  62. install -Dm755 "$srcdir/$pkgname/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
  63. +
  64. + install -Dm644 .nix/com.github.diamondburned.gotktrix.desktop "$pkgdir//usr/share/applications/${pkgname%-git}.desktop"
  65. }
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement