summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2fb396fa0921ba785d3424c060510ea236081876 (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: madprops <mprops at protonmail dot com>

pkgname="rumsfeld-git"
pkgdesc="Search file paths recursively. Written in Nim."
pkgver=r1.1eafb9e
pkgrel=1
arch=("x86_64")
url="https://github.com/madprops/rumsfeld"
license=("GPL3")
makedepends=("nim" "nimble" "git")
sha256sums=("SKIP")
source=("$pkgname::git+https://github.com/madprops/rumsfeld.git")

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd rumsfeld-git
  nimble install -d -y
  nim compile -d:release -o=bin/rumsfeld-release-linux "src/rumsfeld.nim"
}

package() {
  cd rumsfeld-git
  install -D -m755 bin/rumsfeld-release-linux "$pkgdir/usr/bin/rumsfeld"
}