Package Details: rnr 0.3.0-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/ChuckDaniels87/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
Last Updated: 2020-12-13 23:10

Latest Comments

chuckdaniels commented on 2020-12-13 18:00

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

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"

}