summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60172fd5284bb39aff66bf19de1352794ece21a9 (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
pkgver=1.18.0_beta2
_go=1.18.5
# Contributor: Asuka Minato
url="https://github.com/gopherjs/gopherjs"
license=(BSD2)
depends=(glibc)
pkgrel=1
arch=('any')
source=("$pkgname-$pkgver.tar.gz::https://github.com/gopherjs/gopherjs/archive/refs/tags/v${pkgver/_/-}+go${_go}.tar.gz")
makedepends=('go')
md5sums=('c38febaefce9db41702692ded304bd38')

build() {
	for f in *; do
		if [ -d "$f" ]; then
			pushd "$f"
			go build .
		fi
	done
}

package() {
	find . -executable -name gopherjs -exec install -Dm755 {} -t ${pkgdir}/usr/bin/ \;
	find . -name LICENSE -exec install -Dm644 {} -t ${pkgdir}/usr/share/licenses/$pkgname \;
}