summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a7a681fce7a5dec5f59b92b05477402b6dc714a (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
# Maintainer: Hauke Rehfeld <aur@haukerehfeld.de>
pkgname=jj-fzf
pkgver=0.24.0
pkgrel=4
pkgdesc=" Text UI for Jujutsu based on fzf, centering around the jj log with key bindings for common operations"
arch=('any')
url="https://github.com/tim-janik/jj-fzf"
license=('MPL')
depends=('bash' 'grep' 'jujutsu')
makedepends=('make' 'shellcheck' )
sha256sums=('SKIP')
source=("git+$url.git#tag=v$pkgver")

prepare() {
  cd "$srcdir/$pkgname"
  [ -d "./.jj" ] || jj git init --colocate
}

check() {
  cd "$srcdir/$pkgname"
  make check
}

package() {
  cd "$srcdir/$pkgname"
  # FIXME: make install should take care of this https://github.com/tim-janik/jj-fzf/issues/7
  mkdir -p "$pkgdir/usr/bin"
  make prefix="$pkgdir/usr" install
}
# vim:set ts=2 sw=2 et: