summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93bcd0e497aed62d9ba1e0fcd52ba83b6b4d030d (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
# Contributor: Dušan Simić <dusan.simic1810@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=nitch-git
pkgver=0.1.6.r22.g42ad689
pkgrel=1
pkgdesc="Incredibly fast system fetch written in nim - newest git checkout"
arch=(x86_64)
url=https://github.com/unxsh/nitch
license=(MIT)
makedepends=('nim' 'git' 'openssl-1.1')
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --tags | sed 's+-+.r+'|tr - .
}

build() {
  cd "${pkgname%-git}"
  nimble build
}

package() {
  cd "${pkgname%-git}"
  install -Dm755 -t "$pkgdir"/usr/bin "${pkgname%-git}"
  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}