summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d0294f345d0bc1e5dd3d9cb8cf3f53aca08412d (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
43
44
45
46
47
48
49
50
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=hunter-holy-git
pkgver=1.3.4+r12+ge49f2f4
pkgrel=2
pkgdesc='ranger-like file browser written in Rust (holy branch, git)'
arch=(i686 x86_64)
url=https://github.com/rabite0/hunter
license=(WTFPL)
depends=(xdg-utils gst-plugins-base-libs libsixel)
makedepends=(git rustup gst-plugins-bad)
optdepends=('gst-plugins-good: media support'
            'gst-plugins-bad: media support'
            'gst-plugins-ugly: media support'
            'gst-libav: media support'
            'nerd-fonts-complete: supported icon pack'
            'bat: syntax highlighting'
            'highlight: syntax highlighting'
            'libarchive: archive support'
            'p7zip: archive support'
            'atool: archive support'
            'w3m: HTML support'
            'links: HTML support'
            'elinks: HTML support'
            'lynx: HTML support'
            'poppler: PDF support'
            'mupdf-tools: PDF support'
            'fzf: default file finder')
provides=(hunter)
conflicts=(hunter)
source=(git+$url#branch=holy)
sha512sums=('SKIP')

pkgver() {
  cd hunter
  git describe --tags | sed 's#v##;s#-#+#g;s#+#+r#'
}

build() {
  cd hunter
  rustup override set nightly
  cargo build --release
}

package() {
  cd hunter
  install -D target/release/hunter{,-media} -t "$pkgdir"/usr/bin
  install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/hunter
  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/hunter
}