summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4635f13b4a2c3bab062ec35f11ec09528abdc5bc (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
# Maintainer: Nathan Parsons <nathan at nparsons dot uk>

pkgname=j4-persist
pkgver=0.1.2
pkgrel=1
pkgdesc="i3wm's kill, but with persistent containers"
url="https://github.com/n-parsons/j4-persist"
arch=(x86_64 i686 arm armv6h armv7h aarch64)
license=(MIT)
makedepends=(cargo git)
_commit=7b4f5e433a1070c4ba64ece80e43021fbf4b2ef7  # tags/v0.1.2
source=("git+https://github.com/n-parsons/j4-persist#commit=$_commit")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//;s/-/+/g'
}

prepare() {
  cd $pkgname
  cargo fetch --locked
}

build() {
  cd $pkgname
  cargo build --release --frozen --all-features
}

package() {
  cd $pkgname
  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
}