aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-file-rename/APKBUILD
blob: aaa1f580f47baaa00671c3625331b4fd33d5d95f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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"