blob: cff563b311feb091761713788f47f4e068d9c8d7 (
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: Jean Lucas <jean@4ray.co>
pkgname=hunter-git
pkgver=1.2.3+22+gcd01a21
pkgrel=1
pkgdesc='ranger-like file browser written in Rust (git)'
arch=(i686 x86_64)
url=https://github.com/rabite0/hunter
license=(WTFPL)
depends=(file xdg-utils gst-plugins-bad gst-plugins-ugly gst-libav)
makedepends=(git rust-nightly)
optdepends=('nerd-fonts-complete: supported icon pack'
'bat: syntax highlighting'
'highlight: syntax highlighting'
'p7zip: archive support'
'w3m: HTML support'
'links: HTML support'
'elinks: HTML support'
'lynx: HTML support'
'poppler: PDF support'
'mupdf-tools: PDF support')
provides=(hunter)
conflicts=(hunter hunter-holy)
source=(git+$url)
sha512sums=('SKIP')
pkgver() {
cd hunter
git describe --tags | sed 's#v##;s#-#+#g'
}
build() {
cd hunter
cargo +nightly build --release
}
package() {
cd hunter
install -D target/release/{hunter,preview-gen} -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
}
|