# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mylg
pkgver=0.2.6
pkgrel=1
pkgdesc="Network Diagnostic Tool"
url="http://mylg.io"
arch="all"
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 -d
	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"
