void-packages/srcpkgs/perl-File-Rename/template
Enno Boland f40cd77686 srcpkgs: remove pullmoll from maintainers field. 😢
Set them to Orphaned for now.

If you'd like to pick up a package, feel free.
2021-04-10 16:34:44 +02:00

24 lines
696 B
Bash

# Template file for 'perl-File-Rename'
pkgname=perl-File-Rename
version=1.13
revision=2
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl-Module-Build"
makedepends="perl"
depends="${makedepends}"
short_desc="Perl module to rename filenames"
maintainer="Orphaned <orphan@voidlinux.org>"
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
}