-
Notifications
You must be signed in to change notification settings - Fork 0
/
golang_1.21.x.yml
30 lines (29 loc) · 997 Bytes
/
golang_1.21.x.yml
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
# shamelessly copied from https://github.com/flathub/org.freedesktop.Sdk.Extension.golang
name: golang1.21.9
modules:
- name: golang
buildsystem: simple
sources:
- type: archive
only-arches:
- x86_64
url: https://go.dev/dl/go1.21.9.linux-amd64.tar.gz
sha256: f76194c2dc607e0df4ed2e7b825b5847cb37e34fc70d780e2f6c7e805634a7ea
- type: archive
only-arches:
- aarch64
url: https://go.dev/dl/go1.21.9.linux-arm64.tar.gz
sha256: 4d169d9cf3dde1692b81c0fd9484fa28d8bc98f672d06bf9db9c75ada73c5fbc
build-commands:
- install -d ${FLATPAK_DEST}/lib/sdk/golang
- cp -rpv * ${FLATPAK_DEST}/lib/sdk/golang/
- name: scripts
sources:
- type: script
commands:
- export GOROOT=${FLATPAK_DEST}/lib/sdk/golang
- export PATH=$PATH:$GOROOT/bin
dest-filename: enable.sh
buildsystem: simple
build-commands:
- cp enable.sh ${FLATPAK_DEST}/lib/sdk/golang/