APKBUILD examples:Perl

From Alpine Linux
Revision as of 18:13, 31 August 2016 by Jirutka (talk | contribs) (Change _builddir to builddir)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
depends="perl"
makedepends="perl-dev"
build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

The files perllocal.pod and .packlist should be deleted

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}