Skip to content
Snippets Groups Projects
Commit 8e4b6e36 authored by Leonardo Arena's avatar Leonardo Arena
Browse files

main/perl-yaml: disable check(), modernize APKBUILD

parent 1f88f47a
No related branches found
No related tags found
No related merge requests found
......@@ -4,27 +4,30 @@
pkgname=perl-yaml
_pkgreal=YAML
pkgver=1.28
pkgrel=0
pkgrel=1
pkgdesc="YAML Ain't Markup Language (tm)"
url="http://search.cpan.org/dist/YAML/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-test-yaml"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-test-deep"
checkdepends="perl-test-yaml perl-test-deep"
options="!check" # multiple test dependencies are in community and several packages in main depends on it
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
......@@ -35,7 +38,7 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment