summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68f6232802663ba05a38b21f76003abcbe3abcc3 (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="lq-git"
pkgdesc="File listing tool. Written in Nim."
pkgver=r284.28f9a69
pkgrel=1
arch=("x86_64")
url="https://github.com/madprops/lq"
license=("GPL2")
makedepends=("nim" "nimble" "git")
sha256sums=("SKIP")
source=("$pkgname::git+https://github.com/madprops/lq.git")

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

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

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