summaryrefslogtreecommitdiff
path: root/repo/perl-file-rename/perl-file-rename.xibuild
blob: 45cfee33e4661906f6598263b237907ce2b21713 (plain)
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
#!/bin/sh

NAME="perl-file-rename"
DESC="Perl extension for renaming multiple files"

MAKEDEPS=" perl-module-build"

PKG_VER=1.31
SOURCE="https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/File-Rename-$PKG_VER.tar.gz"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$PKG_DEST"
	find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
	mv $PKG_DEST/usr/bin/rename $PKG_DEST/usr/bin/perl-rename
	chmod 0755 $PKG_DEST/usr/bin/perl-rename
}