blob: dd68d4730b74cb283dcf4256f10d9e47de4d987b (
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
|
# Maintainer: Johan Brandhorst <johan.brandhorst at gmail dot com>
pkgname=tinygo-bin
pkgver=0.34.0
pkgrel=1
epoch=
pkgdesc='TinyGo - Go for small spaces'
arch=('x86_64')
url='https://tinygo.org'
license=('custom: BSD 3-clause')
depends=('gcc-libs'
'go>=1.11.0'
)
optdepends=('avr-gcc: Arduino Uno support'
'avrdude: Arduino Uno support'
'openocd: BBC Micro:bit support'
'arm-none-eabi-gdb: tinygo gdb support'
)
provides=('tinygo')
conflicts=('tinygo')
source=("https://github.com/tinygo-org/tinygo/releases/download/v${pkgver}/tinygo${pkgver}.linux-amd64.tar.gz"
"https://raw.githubusercontent.com/tinygo-org/tinygo/v${pkgver}/LICENSE"
)
sha256sums=('8acd27a39090e1e5c3ca341e81350f813ec6a02bf8090c4fc7c4b1afd4186341'
'122381213b7e2278825295b1d1469dd6fd4a22310cbbcb215192bde3f73b6950')
package() {
install -d "${pkgdir}/usr/lib" "${pkgdir}/usr/bin"
cp -r tinygo "${pkgdir}/usr/lib/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
ln -sf /usr/lib/tinygo/bin/tinygo "${pkgdir}/usr/bin/tinygo"
}
|