blob: 88e4f1d5538d6f2479b7b90285d603d275fd236f (
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
33
34
35
36
37
38
39
40
41
|
# Contributor: Max Claus Nunes <maxcnunes@gmail.com>
# Maintainer: Max Claus Nunes <maxcnunes@gmail.com>
pkgname=waitforit
pkgver=1.3.2
pkgrel=0
pkgdesc="Wait until an address become available"
url="https://github.com/maxcnunes/waitforit"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev go"
install=""
subpackages=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/maxcnunes/waitforit/archive/v$pkgver.tar.gz"
builddir="${srcdir}/${pkgname}-${pkgver}"
_godir="${srcdir}/go"
_gourl="github.com/maxcnunes/waitforit"
build() {
mkdir -p ${_godir}/bin ${_godir}/src/github.com/maxcnunes
ln -sf ${builddir} ${_godir}/src/github.com/maxcnunes/waitforit
cd ${_godir}/src/${_gourl}
export GOPATH="${_godir}"
go get -d -v ./...
go install -v ${_gourl} || return 1
}
package() {
cd "$_godir"/bin
install -Dm755 waitforit \
"${pkgdir}/usr/bin/waitforit" || return 1
}
md5sums="1d7d2d25386cd732c03fb63324ba3d15 waitforit-1.3.2.tar.gz"
sha256sums="8359692a2f63b5a13e831919f6ac51cf98ec7eb7b6e07038566c5ae21f40abe3 waitforit-1.3.2.tar.gz"
sha512sums="c50933cab19e160ea591cc2ee7793167b918c7c1dd94fcdf6f70c9744e92ce8287fad1ec135a325fc256fa3af8182d104595829c0627fd956f2a5b50ed2155a6 waitforit-1.3.2.tar.gz"
|