Github messages for voidlinux
 help / color / mirror / Atom feed
From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: tinygo-0.13.1.
Date: Tue, 07 Jul 2020 02:52:18 +0200	[thread overview]
Message-ID: <20200707005218.NKQrDNhmTfQLxAa4UvTxEhxb0n5DymiYH3Z6Zj-Dyj0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23426@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages tinygo
https://github.com/void-linux/void-packages/pull/23426

New package: tinygo-0.13.1.
Based on #17955 by @renatoaguiar.

A patch file from https://github.com/void-linux/void-packages/pull/23426.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tinygo-23426.patch --]
[-- Type: text/x-diff, Size: 2970 bytes --]

From a3eebce622fc7a8ee6419b7851220a8adf1ce7d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Mon, 6 Jul 2020 16:31:51 -0300
Subject: [PATCH] New package: tinygo-0.13.1.

Based on #17955 by @renatoaguiar.
---
 srcpkgs/tinygo/template | 61 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/tinygo/template

diff --git a/srcpkgs/tinygo/template b/srcpkgs/tinygo/template
new file mode 100644
index 00000000000..541f7a31b36
--- /dev/null
+++ b/srcpkgs/tinygo/template
@@ -0,0 +1,61 @@
+# Template file for 'tinygo'
+pkgname=tinygo
+version=0.13.1
+revision=1
+_cmsis=9fe411cef1cef5de58e5957b89760759de44e393
+_avr=6624554c02b237b23dc17d53e992bf54033fc228
+_svd=15b462f152af86f3d15b952e1a5cf1bb9e2693e8
+_compiler_rt=5bc79797e1f9184f39e1bd30fac75d995b72cea3
+_nrfx=3ab39a9d457bfe627473ed0e03a7f1161d9e4f27
+_picolibc=80528c684b10aaee977397e7eb40c4784e6dc433
+_wasi=a280fead2ae71b9a230d3b48c1f95867431888e4
+create_wrksrc=yes
+build_wrksrc=${pkgname}-${version}
+build_style=go
+go_import_path=github.com/tinygo-org/tinygo
+makedepends="clang llvm"
+short_desc="Go compiler for small places"
+maintainer="Érico Nogueira <ericonr@disroot.org>"
+license="BSD-3-Clause, Apache-2.0"
+homepage="https://tinygo.org/"
+distfiles="https://github.com/tinygo-org/tinygo/archive/v${version}.tar.gz
+ https://github.com/ARM-software/CMSIS/archive/${_cmsis}.tar.gz
+ https://github.com/avr-rust/avr-mcu/archive/${_avr}.tar.gz
+ https://github.com/posborne/cmsis-svd/archive/${_svd}.tar.gz
+ https://github.com/llvm-mirror/compiler-rt/archive/${_compiler_rt}.tar.gz
+ https://github.com/NordicSemiconductor/nrfx/archive/${_nrfx}.tar.gz
+ https://github.com/keith-packard/picolibc/archive/${_picolibc}.tar.gz
+ https://github.com/WebAssembly/wasi-libc/archive/${_wasi}.tar.gz"
+checksum="27f4caa12e582f11a844636350d48207595a257dca634c62f67562ee33a61340
+ a73982d8b7a2b6442fe5e309e46bc0b1c248f7fa126beb61b4cf1c052d171758
+ 0f7a130d82a6b6f3cc171e42dfaf62228e0f987239c87711996d4f54b49ad9e0
+ f03a7db4c6866a5fc7de60c3abb24d7dc61d9a42c4193878f00fbd65dfe2b551
+ 67bf700571dcdbde05fbf870c3c4c153858a730ce90c9c553075e414be492b3e
+ d7df6a3e49b5ddb146bbd7ee866f2ec190edd83488e2fa0c1ddd27f016effa0f
+ 03eeac5a3e138ed5321ca6a433d25bd214de3cc1df94e1836b9689f9d59b063f
+ 3d79b48c63cdaaea441afb366872bf47d82349d3f05a5a4ed1fddc1cc266987b"
+
+_move_submodule() {
+	rmdir ${build_wrksrc}/lib/$2
+	mv $1 ${build_wrksrc}/lib/$2
+}
+
+post_extract () {
+	_move_submodule CMSIS-${_cmsis} CMSIS
+	_move_submodule avr-mcu-${_avr} avr
+	_move_submodule cmsis-svd-${_svd} cmsis-svd
+	_move_submodule compiler-rt-${_compiler_rt} compiler-rt
+	_move_submodule nrfx-${_nrfx} nrfx
+	_move_submodule picolibc-${_picolibc} picolibc
+	_move_submodule wasi-libc-${_wasi} wasi-libc
+}
+
+post_build() {
+	make gen-device
+}
+
+post_install() {
+	vmkdir usr/lib/tinygo
+	vcopy "src/device/*" usr/lib/tinygo
+	vlicense LICENSE
+}

  parent reply	other threads:[~2020-07-07  0:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 19:35 [PR PATCH] " ericonr
2020-07-06 20:01 ` ericonr
2020-07-07  0:52 ` ericonr [this message]
2020-07-07  0:54 ` [PR PATCH] [Updated] " ericonr
2020-07-07  0:54 ` ericonr
2020-07-07  1:17 ` [PR PATCH] [Updated] " ericonr
2021-01-04  2:08 ` ericonr
2021-01-04  2:08 ` [PR PATCH] [Closed]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200707005218.NKQrDNhmTfQLxAa4UvTxEhxb0n5DymiYH3Z6Zj-Dyj0@z \
    --to=ericonr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).