summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e147b7ea644f130978fc1edeafe1974e5f295fdd (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
# Maintainer: Energi <bloznelis05@gmail.com>
pkgname=typioca-git
name=typioca
pkgver=2.0.3
pkgrel=1
pkgdesc="Minimal, terminal based typing speed tester"
arch=(x86_64)
url="https://github.com/bloznelis/typioca"
license=(MIT)
groups=()
depends=()
makedepends=(git make go)
provides=("$name")
conflicts=("$name")
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$name"
  printf "%s" "$(git describe --abbrev=0 --tags)"
}

build() {
  cd "$srcdir/$name"
  make VERSION=$pkgver build
}

package() {
  cd "$srcdir/$name"

  install -Dm755 execs/$name "$pkgdir/usr/bin/$name"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$name/"
}