summaryrefslogtreecommitdiff
path: root/repo/perl-path-tiny/perl-path-tiny.xibuild
blob: 18f2fe94fbc51dab40647118dac110f4ee0c59ed (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
#!/bin/sh

NAME="perl-path-tiny"
DESC="File path utility"

MAKEDEPS=""

PKG_VER=0.122
SOURCE="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-$PKG_VER.tar.gz"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$PKG_DEST" install
	find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
}