# Contributor: Mohammad Abdolirad # Maintainer: Mohammad Abdolirad pkgname="wait4x" pkgver="0.1.0" pkgrel=0 pkgdesc="Waiting for a port to enter into specify state" url="https://github.com/atkrad/wait4x" arch="all" license="MIT" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/atkrad/wait4x/archive/v$pkgver.tar.gz" options="!check" _commitsha="57550b74" _commitdatetime="2020-02-08T06:25:37Z" build() { go build -v \ -ldflags "-X github.com/atkrad/wait4x/cmd.AppVersion=v$pkgver -X github.com/atkrad/wait4x/cmd.GitCommit=$_commitsha -X github.com/atkrad/wait4x/cmd.BuildTime=$_commitdatetime" \ -o bin/$pkgname } package() { install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="4914c20c1c9a56c8880160c2a049b8d1fe4ebb05ba67008e2464a3368247ac231a97435e9e7b0fef4e9bf94a083435e904b5545661383f628cff4300dfd425c5 wait4x-0.1.0.tar.gz"