aboutsummaryrefslogtreecommitdiffstats
path: root/community/geth/APKBUILD
blob: ed7e67b5a97f9ab2bc98b60d4710e629389c6415 (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=geth
pkgver=1.8.11
pkgrel=0
pkgdesc="Official Go implementation of the Ethereum protocol"
url="https://geth.ethereum.org/"
arch="all"
license="LGPL-3.0"
makedepends="go linux-headers"
checkdepends="fuse"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/ethereum/go-ethereum/archive/v$pkgver.tar.gz"
builddir="$srcdir/go-ethereum-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	mkdir -p "${pkgdir}"/usr/bin
	install -m755 -t "${pkgdir}"/usr/bin build/bin/*
}

sha512sums="f1a7f3f8a0ceaf03b87e399ac21fa6550a4c121daa209bac4b8a7f1cc7368ac3d9c40ace7d0d50c117f74e30170f34245b45bf1fadf8948694f7fe352154d9b9  geth-1.8.11.tar.gz"