diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:44:54 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:44:56 +0000 |
commit | 309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e (patch) | |
tree | 8285479a453f1a00a2b7a57fd888d5758a382633 /community/perl-graph | |
parent | 3203ab3332b63ed5ab432420cb6897ddacfd729b (diff) | |
download | aports-309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e.tar.bz2 aports-309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e.tar.xz |
community/perl-[g-h]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- Rename _builddir to builddir
- Add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-graph')
-rw-r--r-- | community/perl-graph/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-graph/APKBUILD b/community/perl-graph/APKBUILD index bb8cf53b1b..2e368470e2 100644 --- a/community/perl-graph/APKBUILD +++ b/community/perl-graph/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-graph _pkgreal=Graph pkgver=0.9704 -pkgrel=0 +pkgrel=1 pkgdesc="unknown" url="http://search.cpan.org/dist/Graph/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JH/JHI/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="1ab4e49420e56eeb1bc81d842aa8f3af Graph-0.9704.tar.gz" -sha256sums="325e8eb07be2d09a909e450c13d3a42dcb2a2e96cc3ac780fe4572a0d80b2a25 Graph-0.9704.tar.gz" sha512sums="1eed5049577112cc2e41a83f6b3b6a22a08170597b5cb89e2eab6cc68386bfd989d3953d7ceab85bcfbd7d097a6925bd8eb43f48eed1ac07469ea4b2432149da Graph-0.9704.tar.gz" |