void-packages/srcpkgs/mmv-rs/template

25 lines
811 B
Bash

# Template file for 'mmv-rs'
pkgname=mmv-rs
version=1.4.0
revision=1
build_style=cargo
short_desc="Minimal cli utility for safe mass moving/renaming of files"
maintainer="Luca Matei Pintilie <luca@lucamatei.com>"
license="0BSD"
homepage="https://sr.ht/~mango/mmv"
changelog="https://git.sr.ht/~mango/mmv/refs"
distfiles="https://git.sr.ht/~mango/mmv/archive/v$version.tar.gz"
checksum=c0405651dd09062b2c93c5791f05f8fe8bc2b017696829fbffaaf36d702bff74
# Used at buildtime to set default name
export MMV_NAME="mmv-rs"
export MCP_NAME="mcp-rs"
post_install() {
mv $DESTDIR/usr/bin/mmv $DESTDIR/usr/bin/mmv-rs
ln -s mmv-rs $DESTDIR/usr/bin/mcp-rs
vsed -i mmv.1 -e 's/mmv/&-rs/g; s/[^/]mcp/&-rs/g; s/MMV/&-RS/g; s|prj/mmv-rs|prj/mmv|;'
vman mmv.1 mmv-rs.1
ln -s mmv-rs.1 $DESTDIR/usr/share/man/man1/mcp-rs.1
}