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

pkgname=nitch-git
pkgver=0.1.6.r36.g142fd89
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')
conflicts=(nitch)
provides=(nitch)
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
}