1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/perl-file-rename/APKBUILD
Milan P. Stanić 500a67d93e testing/perl-file-rename: upgrade to 1.30
fix url
remove double perl-module-build from makedepends
2021-08-17 06:35:41 +00:00

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.30
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="
d1f90b75a7e7d5f2d49ec4f268af7b17c764e592446988d678da218c653b4e730661fae4cbe55ef399db7bfe8b798b0f70492a4eb231ddae5d72883aa74e588c File-Rename-1.30.tar.gz
"