Package Details: rnr 0.4.2-2

Git Clone URL: https://aur.archlinux.org/rnr.git (read-only, click to copy)
Package Base: rnr
Description: A CLI tool to rename files and directories that supports regex.
Upstream URL: https://github.com/ismaelgv/rnr
Keywords: command-line rename rust tool
Licenses: MIT
Provides: rnr
Submitter: chuckdaniels
Maintainer: chuckdaniels
Last Packager: chuckdaniels
Votes: 1
Popularity: 0.000000
First Submitted: 2018-07-23 21:09 (UTC)
Last Updated: 2023-04-02 16:21 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

chuckdaniels commented on 2023-04-01 16:15 (UTC)

I will fix that as soon as possible. Thanks for reporting, I am glad that you like this tool.

aikow commented on 2023-04-01 16:07 (UTC)

Thanks for maintaining this package! I'd like to suggest explicitly setting the CARGO_TARGET_DIR=target environment variable before running cargo build, since the installation will fail if the user has a non-default target bin location.

For anyone interested in case this doesn't get fixed, simply running your AUR helper of choice with the environment variable set will also work, it's just kind of tedious to remember :)

CARGO_TARGET_DIR=target yay -S rnr

chuckdaniels commented on 2020-12-13 18:00 (UTC)

Thanks haawda, I will do that as soon as I get some time to set it up and test it a bit.

haawda commented on 2020-12-13 17:54 (UTC)

In Arch Linux t is common to build from sources if available. so please use something like this as PKGBUILD for rnr and upload th current PKGBUILD as "rnr-bin" to AUR.

# Maintainer: Ismael González Valverde <ismgonval@gmail.com>

pkgname=rnr
pkgver=0.3.0
pkgrel=1
pkgdesc='A CLI tool to rename files and directories that supports regex.'
arch=('x86_64')
url='https://github.com/ChuckDaniels87/rnr'
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ChuckDaniels87/rnr/archive/v$pkgver/v$pkgver.tar.gz")
md5sums=('5716da90e696da1aa04221f277cbdea0')

build () {
  cd ${pkgname}-$pkgver
     cargo build --release --locked --all-features --target-dir=target
}

check() {
   cargo test --release --locked --target-dir=target
}

package() {
  cd ${pkgname}-$pkgver
  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"

  # Documentation
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
  # License files
  install -Dm644 LICENSE \
    "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"

}