APKBUILD examples:Perl

From Alpine Linux
Revision as of 12:29, 7 March 2016 by Fab (talk | contribs) (Reverted edits by RuthHughes (talk) to last revision by Dubiousjim)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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
}