void-packages/srcpkgs/perl-File-Rename/template
2020-06-22 18:17:31 +02:00

25 lines
720 B
Bash

# Template file for 'perl-File-Rename'
pkgname=perl-File-Rename
version=1.13
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=0b308d6ac5b8ae0dad6135c7b68620582221b2b3144a5b390ddd2ea64312e64d
post_extract() {
vsed -i rename.PL -e"s;rename - renames multiple files;p&;"
}
post_install() {
# Rename to prename
mv ${DESTDIR}/usr/bin/{,p}rename
}