Date: Tuesday, January 17, 2023 @ 08:50:52
  Author: orhun
Revision: 1386724

archrelease: copy trunk to community-x86_64

Added:
  felix-rs/repos/community-x86_64/
  felix-rs/repos/community-x86_64/PKGBUILD
    (from rev 1386723, felix-rs/trunk/PKGBUILD)
  felix-rs/repos/community-x86_64/felix-rs.install
    (from rev 1386723, felix-rs/trunk/felix-rs.install)

------------------+
 PKGBUILD         |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 felix-rs.install |    3 +++
 2 files changed, 52 insertions(+)

Copied: felix-rs/repos/community-x86_64/PKGBUILD (from rev 1386723, 
felix-rs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-01-17 08:50:52 UTC (rev 1386724)
@@ -0,0 +1,49 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+# Contributor: Kyohei Uto <[email protected]>
+
+pkgname=felix-rs
+_pkgname=felix
+pkgver=2.2.2
+pkgrel=2
+pkgdesc="A TUI file manager with Vim-like key mapping"
+arch=('x86_64')
+url="https://github.com/kyoheiu/felix";
+license=('MIT')
+depends=('gcc-libs' 'bzip2')
+makedepends=('cargo')
+optdepends=('chafa: preview images'
+            'zoxide: jump to directories')
+checkdepends=('zoxide')
+install="$pkgname.install"
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('30f3e6bf3cf3e9937dbd2561a9fcd5b3a443b628f327ec220936207904ca73cb7e15794eec54fb773137d844bbaa53fdc7682f9eb6cfb45b66f91d52a27bc81b')
+options=('!lto')
+
+prepare() {
+  cd "$_pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$_pkgname-$pkgver"
+  cargo build --release --frozen
+}
+
+check() {
+  cd "$_pkgname-$pkgver"
+  # https://github.com/kyoheiu/felix/issues/170
+  cargo test \
+         --frozen -- \
+         --skip "magic_packed::tests::test_inspect_signature" \
+         --skip "magic_image::tests::test_inspect_image" \
+         --skip "functions::tests::test_list_up_contents"
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+  install -Dm 755 "target/release/fx" "$pkgdir/usr/bin/$_pkgname"
+  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:

Copied: felix-rs/repos/community-x86_64/felix-rs.install (from rev 1386723, 
felix-rs/trunk/felix-rs.install)
===================================================================
--- community-x86_64/felix-rs.install                           (rev 0)
+++ community-x86_64/felix-rs.install   2023-01-17 08:50:52 UTC (rev 1386724)
@@ -0,0 +1,3 @@
+post_upgrade() {
+       echo "The launcher binary is renamed as 'felix', alias fx='felix' if 
you were using 'fx'"
+}

Reply via email to