mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Milan P. Stanić <mps@arvanta.net>
|
|
# Maintainer: Milan P. Stanić <mps@arvanta.net>
|
|
pkgname=perl-file-rename
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=File-Rename
|
|
pkgver=1.31
|
|
pkgrel=0
|
|
pkgdesc="Perl extension for renaming multiple files"
|
|
url="https://metacpan.org/pod/File::Rename"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-module-build"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/File-Rename-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
mv $pkgdir/usr/bin/rename $pkgdir/usr/bin/file-rename
|
|
chmod 0755 $pkgdir/usr/bin/file-rename
|
|
}
|
|
|
|
sha512sums="
|
|
167e9febe279ab5ee29b748310e321c09c165cec717618c7668b846262fd898ada40c16c5b6b92baea2553ff827a6bd285f4801bd9487245b4715dfcafee9428 File-Rename-1.31.tar.gz
|
|
"
|