diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 11 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = bashhub-server-git pkgdesc = a private cloud alternative for bashhub-client with some added features like regex search. pkgver = 0.2.5.r13.c49226d - pkgrel = 1 + pkgrel = 2 url = https://github.com/nicksherron/bashhub-server arch = x86_64 license = Apache @@ -2,7 +2,7 @@ _pkgname=bashhub-server pkgname=${_pkgname}-git pkgver=0.2.5.r13.c49226d -pkgrel=1 +pkgrel=2 pkgdesc='a private cloud alternative for bashhub-client with some added features like regex search.' arch=('x86_64') _repo_prefix='github.com/nicksherron' @@ -68,6 +68,15 @@ build () { -o "${_repo_name}.bin" } +check () { + cd "${srcdir}/src/${_repo_prefix}/${_repo_name}" + export GOPATH="${srcdir}/go" + export GOBIN="${GOPATH}/bin" + export PATH="${GOBIN}:${PATH}" + + go test -v ./... +} + package () { cd "${srcdir}/src/${_repo_prefix}/${_repo_name}" install -Dm 755 "${srcdir}/src/${_repo_prefix}/${_repo_name}/${_repo_name}.bin" "${pkgdir}/usr/bin/${_repo_name}" |