blob: 6ccbbe5925495a1548779c0e0a11d4cb8465d7f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
NAME="perl-list-moreutils"
DESC="Provide the stuff missing in List::Util"
MAKEDEPS=" perl perl-config-autoconf perl-exporter-tiny"
DEPS=" perl perl-config-autoconf perl-exporter-tiny"
PKG_VER=0.430
SOURCE="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-$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
}
package() {
make DESTDIR="$PKG_DEST" install
find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
}
|