APKBUILD examples:Perl: Difference between revisions

From Alpine Linux
No edit summary
mNo edit summary
Line 1: Line 1:
<pre>
depends="perl"
makedepends="perl-dev"
</pre>
<pre>
<pre>
build() {
build() {

Revision as of 09:07, 3 July 2011

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
}