Package Details: pacpreview 0.5.0-1

Git Clone URL: https://aur.archlinux.org/pacpreview.git (read-only, click to copy)
Package Base: pacpreview
Description: Pacman package info viewer, intended for use with fzf --preview
Upstream URL: https://github.com/TheCycoONE/pacpreview
Licenses: GPL3
Submitter: TheCycoONE
Maintainer: TheCycoONE
Last Packager: TheCycoONE
Votes: 1
Popularity: 0.000000
First Submitted: 2021-04-28 22:16 (UTC)
Last Updated: 2025-12-16 23:56 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

murlakatamenka commented on 2026-01-11 13:28 (UTC) (edited on 2026-01-11 13:29 (UTC) by murlakatamenka)

Here is a patch to make the PKGBUILD closer to Rust package guidelines:

diff --git a/PKGBUILD b/PKGBUILD
index c6aac5a..41c02ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,30 @@
 pkgname=pacpreview
 pkgver=0.5.0
 pkgrel=2
-makedepends=('rust' 'cargo')
+makedepends=('cargo')
 optdepends=('fzf: use as a search tool')
 arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
 pkgdesc="Pacman package info viewer, intended for use with fzf --preview"
 license=('GPL3')
 url='https://github.com/TheCycoONE/pacpreview'
-source=("$pkgname-$pkgver.tar.gz::https://github.com/TheCycoONE/$pkgname/archive/$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha256sums=('29b9e25913459903692050a2299a74d6565335ffe23ea1948264ea3bb7e90f2a')

+prepare() {
+    cd "$pkgname-$pkgver"
+
+    export RUSTUP_TOOLCHAIN=stable
+
+    cargo fetch --locked --target "$(rustc --print host-tuple)"
+}
+
 build() {
     cd "$pkgname-$pkgver"

-    RUSTUP_TOOLCHAIN=stable cargo build --release --locked --target-dir=target
+    export RUSTUP_TOOLCHAIN=stable
+    export CARGO_TARGET_DIR=target
+
+    cargo build --release --frozen
 }

 package() {

TheCycoONE commented on 2025-12-16 23:57 (UTC)

Removed check and bumped to the latest version. Thanks @murlakatamenka

murlakatamenka commented on 2025-02-27 18:50 (UTC)

Hi!

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Can you please remove check() for now since it doesn't do anything but waste CPU cycles? Thanks