aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mylg/APKBUILD
blob: 9b42491560cd875d70cbff178d51e35cd7f8f132 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mylg
pkgver=0.2.6
pkgrel=0
pkgdesc="Network Diagnostic Tool"
url="http://mylg.io"
arch="all !ppc64le"
license="MIT"
makedepends="go libpcap-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/mehrdadrad/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	export GOPATH="$srcdir"
	go get -v
	go build mylg.go
}

package() {
	cd "$builddir"
    install -Dm0755 "$builddir"/mylg "$pkgdir"/usr/bin/$pkgname
}

md5sums="82f0377f3d3edc9b85ff2da4e4120687  mylg-0.2.6.tar.gz"
sha256sums="deeb8d406d72b446968e75072f8c27da77a843c76a704148fac750993cbd790e  mylg-0.2.6.tar.gz"
sha512sums="c8ee2c0ac713bdea976809064f1e49935a113198a4c6f540e28f863df709d368bb3b58da46a295fe477e9e6c2955067d3d75f9f6cffb30f0a0a05b3b7213b438  mylg-0.2.6.tar.gz"