APKBUILD examples:Perl: Difference between revisions

From Alpine Linux
m (added to Development Category)
(Category:Perl)
Line 22: Line 22:
</pre>
</pre>


[[Category:Development]]
[[Category:Development]] [[Category:Perl]]

Revision as of 07:45, 12 March 2012

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
}