summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d4b4011507f87c31980597249f74e70a337fd11 (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
# Maintainer: madprops <mprops at protonmail dot com>

pkgname="lq-git"
pkgdesc="File listing tool. Written in Nim."
pkgver=0.0.2
pkgrel=1
arch=("x86_64")
url="https://github.com/madprops/lq"
license=("GPL2")
makedepends=("nim" "nimble")
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"
  cp -n lq.conf ~/.config/lq/lq.conf
}