Package Details: reclog 0.1.3-2

Git Clone URL: https://aur.archlinux.org/reclog.git (read-only, click to copy)
Package Base: reclog
Description: Command-line tool to capture command output to a file.
Upstream URL: https://github.com/gavv/reclog
Licenses: MIT
Submitter: matthewq337
Maintainer: matthewq337
Last Packager: matthewq337
Votes: 1
Popularity: 1.00
First Submitted: 2025-05-14 20:02 (UTC)
Last Updated: 2025-05-14 21:57 (UTC)

Required by (0)

Sources (1)

Latest Comments

matthewq337 commented on 2025-05-14 22:07 (UTC)

@ImperatorStorm fixed, thanks

ImperatorStorm commented on 2025-05-14 21:45 (UTC)

Patch to better comply with the https://wiki.archlinux.org/title/Rust_package_guidelines :

diff --git a/.SRCINFO b/.SRCINFO
index e263448..74c11fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,16 @@
 pkgbase = reclog
    pkgdesc = Command-line tool to capture command output to a file.
    pkgver = 0.1.3
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/gavv/reclog
    arch = i686
    arch = x86_64
+   arch = armv6h
+   arch = armv7h
    license = MIT
    makedepends = cargo
+   depends = glibc
+   depends = gcc-libs
    source = reclog-0.1.3.tar.gz::https://crates.io/api/v1/crates/reclog/0.1.3/download
    sha256sums = 496d3120f162b7226c85638a1686128cfb2afea861395d208eae627a56e3e7ba

diff --git a/PKGBUILD b/PKGBUILD
index dbd9723..1a6700f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,45 @@
 #Maintainer: Pierre Chevalier <pierrechevalier83@gmail.com>

+
 pkgname=reclog
 _pkgname=reclog
 pkgver=0.1.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Command-line tool to capture command output to a file."
 url="https://github.com/gavv/reclog"
-makedepends=('cargo')
-arch=('i686' 'x86_64')
+depends=(glibc gcc-libs)
+makedepends=(cargo)
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
 license=('MIT')
 source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download")
 sha256sums=('496d3120f162b7226c85638a1686128cfb2afea861395d208eae627a56e3e7ba')

+prepare() {
+  cd "$_pkgname-$pkgver"
+  export RUSTUP_TOOLCHAIN=stable
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+}
+
 build() {
   cd "$_pkgname-$pkgver"
-  cargo build --release
+  export RUSTUP_TOOLCHAIN=stable
+  export CARGO_TARGET_DIR=target
+  cargo build --frozen --release --all-features
 }

+##
+## Test currently no-ops
+##
+
+#check() {
+#  cd "$_pkgname-$pkgver"
+#  export RUSTUP_TOOLCHAIN=stable
+#  cargo test --frozen --all-features
+#}
+
 package() {
   cd "$_pkgname-$pkgver"
   install -Dm755 target/release/reclog "$pkgdir/usr/bin/reclog"
-   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 "reclog.1" "$pkgdir/usr/share/man/man1/reclog.1"
 }