mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # 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=2.01
 | |
| 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 Makefile.PL --installdirs=vendor
 | |
| 	make
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	make test
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	make DESTDIR="$pkgdir" INSTALLDIRS=vendor install
 | |
| 	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
 | |
| 	rm -rf $pkgdir/usr/lib
 | |
| 	mv $pkgdir/usr/bin/rename $pkgdir/usr/bin/file-rename
 | |
| 	mv $pkgdir/usr/share/man/man1/rename.1 $pkgdir/usr/share/man/man1/file-rename.1
 | |
| 	chmod 0755 $pkgdir/usr/bin/file-rename
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 7cbb08facf94c1246a9a1bed6baa1a0e1eface35d5baab1726596daa51b1eb4beb2bfcc75de5945d4fcd265c5119db5e1ef5b9280fc4dbbc1735e2d80d922cae  File-Rename-2.01.tar.gz
 | |
| "
 |