mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
36 lines
1.2 KiB
Text
36 lines
1.2 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.20
|
|
pkgrel=0
|
|
pkgdesc="Perl extension for renaming multiple files"
|
|
url="https://metacpan.org/release/File-Rename/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
makedepends="perl-dev perl-module-build 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="3ba6bfe6f1b69c4f8e43ea7164d6c84a368f4954e29ca731bc7e59d35b59a62c82aa9d7a1a617c15d63a227ba5c73f76d1cb0939d1b393fd2c53fe8d4f441966 File-Rename-1.20.tar.gz"
|