Rename /usr/bin/rename to /usr/bin/prename as e.g. the script makeicecat of the icecat 68 branch expects.
25 lines
720 B
Bash
25 lines
720 B
Bash
# 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
|
|
}
|