summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98d68b6624108b076a9baabafe005fde1c9ccb10 (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
# Maintainer: Tommaso Sardelli <lacapannadelloziotom [AT] gmail [DOT] com>
pkgname=gotest
pkgver=0.0.6
pkgrel=1
pkgdesc='go test with colors'
arch=('x86_64')
url='https://github.com/rakyll/gotest'
license=('BSD')
depends=('go')
conflicts=('gotest-git')
provides=('gotest')
source=("https://github.com/rakyll/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('19817979ced1a971cf71d3f801e6e6d631054c2fa1359ec6bfa92ecaea56d17bdc36a48648ccde107660936541fc7be5ff5d5536ffc821b6edc1fe2b0d9ab19d')

prepare() {
    export GOPATH="${srcdir}"
    cd "${srcdir}/${pkgname}-${pkgver}"
    go mod download
}

build() {
  cd "$srcdir/${pkgname}-${pkgver}"
  go build 
}

package() {
  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}