summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab3c7d249ace5511f49b116e56b605d1078ba401 (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
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Areskul <areskul@areskul.com>
pkgname="pipelight-git"
base="pipelight"
pkgrel=1
pkgver=0.7.20
pkgdesc="A Rust based quick automation tool"
arch=("any")
url="https://gitea.com/pipelight/pipelight.git"
license=('GPL2')
depends=(deno watchexec)
makedepends=(git make cargo)
provides=("pipelight-git")
conflicts=("pipelight")
source=(git+$url)
md5sums=('SKIP') #autofill using updpkgsums

build() {
  cd $base
  # Checkout to latest tag
  tag=$(git describe --tags --abbrev=0)
  git checkout $tag

  cargo build --release
}

pre-install() {
  # Var Log folder
  mkdir -p /var/log/pipelight
}


package() {
  # Install the only binary
  cd $base
  bin="target/release/$base"
  install -Dm755 $bin -t $pkgdir/usr/bin
}

pkgver() {
  cd $base
  git describe --tags --abbrev=0 | sed s/v//
}