summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 871a8296a877cdc515665af506b68ac6cf77ecbe (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
# Maintainer: Temuri Takalandze <takalandzet@gmail.com>
pkgname=goclockify
pkgver=1.1.0
pkgrel=1
pkgdesc='A terminal based client for Clockify time tracker'
arch=('x86_64')
url='https://github.com/ABGEO/goclockify'
license=('MIT')
makedepends=('go' 'make')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('dafdb43daaf6eb7e7c3a321dd732cbe71873ec029c1f58d881ce5058be8ff636')

pkgver() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    go run cmd/goclockify/main.go --version
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make build-linux-binary
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -Dm755 build/output/$pkgname-$pkgver-linux-amd64 "$pkgdir"/usr/bin/$pkgname
}