APKBUILD examples:Perl: Difference between revisions
(Created page with "<pre> build() { cd "$_builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make && make test || return 1 } </pre> The files perllocal.pod and .pack...") |
(Change _builddir to builddir) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<pre> | |||
depends="perl" | |||
makedepends="perl-dev" | |||
</pre> | |||
<pre> | <pre> | ||
build() { | build() { | ||
cd "$ | cd "$builddir" | ||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 | ||
make && make test || return 1 | make && make test || return 1 | ||
Line 11: | Line 16: | ||
<pre> | <pre> | ||
package() { | package() { | ||
cd "$ | cd "$builddir" | ||
make DESTDIR="$pkgdir" install || return 1 | make DESTDIR="$pkgdir" install || return 1 | ||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete | ||
} | |||
</pre> | </pre> | ||
[[Category:Development]] [[Category:Perl]] |
Latest revision as of 18:13, 31 August 2016
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 }