Package Details: autojump-rs 0.5.1-2

Git Clone URL: https://aur.archlinux.org/autojump-rs.git (read-only, click to copy)
Package Base: autojump-rs
Description: A faster way to navigate your filesystem from the command line (in Rust)
Upstream URL: https://github.com/xen0n/autojump-rs
Licenses: GPL3
Conflicts: autojump
Provides: autojump
Submitter: Jonhoo
Maintainer: smlavine
Last Packager: smlavine
Votes: 12
Popularity: 0.062974
First Submitted: 2020-06-20 14:43 (UTC)
Last Updated: 2023-01-03 19:30 (UTC)

Dependencies (1)

Required by (1)

Sources (2)

Latest Comments

1 2 Next › Last »

DaVinci42 commented on 2023-01-04 12:21 (UTC) (edited on 2023-01-04 12:22 (UTC) by DaVinci42)

@smlavine

confirmed it's working for autojump-rs-0.5.1-2 with yay -S autojump-rs on aarch64. thanks

smlavine commented on 2023-01-03 19:32 (UTC)

DaVinci42: There is now a source array for the non-architcture-specific Python source, and a source array for each architecture (including x86_64) for the architecture-specific Rust binaries. Please let me know if this solved the issue for you. Thanks!

DaVinci42 commented on 2023-01-03 17:40 (UTC)

I'm using aarch64, and yes validity check failed with following log:

$ makepkg -si
==> Making package: autojump-rs 0.5.1-1 (Wed 04 Jan 2023 01:31:17 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading autojump-rs-0.5.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1155k  100 1155k    0     0   416k      0  0:00:02  0:00:02 --:--:--  525k
  -> Downloading autojump-22.5.3.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 55429    0 55429    0     0  48751      0 --:--:--  0:00:01 --:--:--  125k
  -> Found autojump-rs-0.5.1.tar.gz
  -> Found autojump-22.5.3.tar.gz
==> Validating source files with md5sums...
    autojump-rs-0.5.1.tar.gz ... FAILED
    autojump-22.5.3.tar.gz ... Passed
==> ERROR: One or more files did not pass the validity check!
FAIL

Fixed by modifing source & md5sums for x86_64, change into:

source_x86_64=(
    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/releases/download/${pkgver}/autojump-${CARCH}-unknown-linux-musl.tar.gz"
    "autojump-${_autojump_version}.tar.gz::https://github.com/wting/autojump/archive/release-v${_autojump_version}.tar.gz"
)
md5sums_x86_64=('1cabb0c3551c865f2da81a2e2af48423'
         '29f1a7df736814c747645703bf00ce48')

It works, but TBH, I'm not sure if it's the best practice for ABS

smlavine commented on 2023-01-02 15:49 (UTC)

aarch64 and i686 users: I was having trouble with makepkg completing the validity check successfully for your architecture on version 0.5.1-1, even though manually running md5sum produced the checksum I have in the PKGBUILD. Please let me know if you have issues with the validity check too.

smlavine commented on 2023-01-02 04:18 (UTC)

Thanks for the tip j0ni -- I've pushed a new pkgrel without it.

j0ni commented on 2023-01-02 01:01 (UTC)

The --offline option to cargo breaks this build for me.

smlavine commented on 2023-01-01 22:15 (UTC)

Thanks eugene -- patch applied with minor additions.

eugene commented on 2023-01-01 16:36 (UTC)

Please consider following package update to build application from the source:

diff --git a/PKGBUILD b/PKGBUILD
index 8c58b37..07aad1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jon Gjengset <jon@thesquareplanet.com>
 pkgname=autojump-rs
-pkgver=0.4.0
-pkgrel=3
+pkgver=0.5.0
+pkgrel=1
 pkgdesc="A faster way to navigate your filesystem from the command line (in Rust)"
 arch=('x86_64' 'i686' 'arm' 'armv7h' 'aarch64')
 url="https://github.com/xen0n/autojump-rs"
@@ -9,43 +9,28 @@ license=('GPL3')
 conflicts=('autojump')
 provides=('autojump')
 depends=()
-makedepends=('python>=3.8')
+makedepends=('python>=3.8' 'cargo')
 options=()
 install=
 _autojump_version='22.5.3'
 source=(
-    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/releases/download/${pkgver}/autojump-${pkgver}-${CARCH}-unknown-linux-musl.tar.gz"
+    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/archive/refs/tags/${pkgver}.tar.gz"
     "autojump-${_autojump_version}.tar.gz::https://github.com/wting/autojump/archive/release-v${_autojump_version}.tar.gz"
 )
-md5sums=('b7ab473f1dc541c0d8503b32f969a2f4'
+md5sums=('b5e691a80b2cc30e673a981b04004c82'
          '29f1a7df736814c747645703bf00ce48')

-# alt arches
-source_aarch64=(
-    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/releases/download/${pkgver}/autojump-${pkgver}-${CARCH}-unknown-linux-gnu.tar.gz"
-    "autojump-${_autojump_version}.tar.gz::https://github.com/wting/autojump/archive/release-v${_autojump_version}.tar.gz"
-)
-md5sums_aarch64=('b7ab473f1dc541c0d8503b32f969a2f4'
-                 '29f1a7df736814c747645703bf00ce48')
-source_arm=(
-    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/releases/download/${pkgver}/autojump-${pkgver}-${CARCH}-unknown-linux-gnueabi.tar.gz"
-    "autojump-${_autojump_version}.tar.gz::https://github.com/wting/autojump/archive/release-v${_autojump_version}.tar.gz"
-)
-md5sums_arm=('b7ab473f1dc541c0d8503b32f969a2f4'
-             '29f1a7df736814c747645703bf00ce48')
-source_armv7h=(
-    "$pkgname-$pkgver.tar.gz::https://github.com/xen0n/autojump-rs/releases/download/${pkgver}/autojump-${pkgver}-armv7-unknown-linux-gnueabihf.tar.gz"
-    "autojump-${_autojump_version}.tar.gz::https://github.com/wting/autojump/archive/release-v${_autojump_version}.tar.gz"
-)
-md5sums_armv7h=('b7ab473f1dc541c0d8503b32f969a2f4'
-                '29f1a7df736814c747645703bf00ce48')
-
 prepare() {
     cd "autojump-release-v${_autojump_version}"
     sed -i "s:/env python:/python3:g" bin/autojump
     sed -i "/print('\\\\n\\\\t' + source_msg)/ s@source_msg@source_msg.replace('$pkgdir', '')@" install.py
 }

+build() {
+    cd "$srcdir/$pkgname-$pkgver"
+    cargo build --locked --all-features --release --target-dir target
+}
+
 package() {
     # we basically run the installer for autojump
     # and then remove all the python bits and replace the bin file
@@ -78,7 +63,7 @@ package() {
     rm -r "${pkgdir}/usr/share/man/"

     # install the Rust binary
-    install -Dm755 "${srcdir}/autojump" "${pkgdir}/usr/bin/autojump"
+    install -Dm755 "${srcdir}/$pkgname-$pkgver/target/release/autojump" "${pkgdir}/usr/bin/autojump"
 }

 # vim:set ts=4 sw=4 et:

smlavine commented on 2021-04-24 02:52 (UTC)

This fixed the issue. Thank you!