New package: perl-File-Rename

Rename /usr/bin/rename to /usr/bin/prename as e.g. the script
makeicecat of the icecat 68 branch expects.
This commit is contained in:
Jürgen Buchmüller 2020-04-06 13:07:09 +02:00
parent 7cb156f25f
commit 7d9e2ddc10
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Template file for 'perl-File-Rename'
pkgname=perl-File-Rename
version=1.10
revision=1
archs=noarch
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl-Module-Build"
makedepends="perl"
depends="${makedepends}"
short_desc="Perl module to rename filenames"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
homepage="https://metacpan.org/release/File-Rename"
license="Artistic-1.0-Perl"
distfiles="${CPAN_SITE}/File/${pkgname/perl-/}-${version}.tar.gz"
checksum=054ebb366c36e55140f7765f5ea13e34e1a3520bb964ba231ac0926c8046f58c
post_extract() {
vsed -i rename.PL -e"s;rename - renames multiple files;p&;"
}
post_install() {
# Rename to prename
mv ${DESTDIR}/usr/bin/{,p}rename
}