1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Kyohei Uto <im@kyoheiu.dev>
8 pkgdesc="A TUI file manager with Vim-like key mapping"
10 url="https://github.com/kyoheiu/felix"
12 depends=('gcc-libs' 'bzip2')
14 optdepends=('chafa: preview images'
15 'zoxide: jump to directories')
16 checkdepends=('zoxide')
17 install="$pkgname.install"
18 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
19 sha512sums=('5f4f571c62b9a8c7fdddc1e2e3c7058f24075c70843d707c0c9053fd1cbf3402bef96f537a2767f99d258843eece9d58a1f8a7f8d20a55810c4e1da8517b6986')
23 cd "$_pkgname-$pkgver"
24 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
28 cd "$_pkgname-$pkgver"
29 cargo build --release --frozen
33 cd "$_pkgname-$pkgver"
34 # https://github.com/kyoheiu/felix/issues/200
35 touch testfiles/permission_test
36 chmod 444 testfiles/permission_test
41 cd "$_pkgname-$pkgver"
42 install -Dm 755 "target/release/fx" "$pkgdir/usr/bin/$_pkgname"
43 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
44 install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"