diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 01:07:46 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 01:07:48 +0000 |
commit | 413ab3aff4e8bdf6afd0a4d64732ef08a216f6b1 (patch) | |
tree | ad2022f5506e3cc3affbc976ff88591267a5af55 /testing/perl-data-compare | |
parent | f27e1c9d54b1671b93fd913d1fe12972ec8269c3 (diff) | |
download | aports-413ab3aff4e8bdf6afd0a4d64732ef08a216f6b1.tar.bz2 aports-413ab3aff4e8bdf6afd0a4d64732ef08a216f6b1.tar.xz |
testing/perl-data-compare: modernize and add package description
Diffstat (limited to 'testing/perl-data-compare')
-rw-r--r-- | testing/perl-data-compare/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/testing/perl-data-compare/APKBUILD b/testing/perl-data-compare/APKBUILD index 2f5d1596ad..8de731e795 100644 --- a/testing/perl-data-compare/APKBUILD +++ b/testing/perl-data-compare/APKBUILD @@ -4,38 +4,41 @@ pkgname=perl-data-compare _pkgreal=Data-Compare pkgver=1.25 -pkgrel=0 -pkgdesc="unknown" +pkgrel=1 +pkgdesc="Compare perl data structures" url="http://search.cpan.org/dist/Data-Compare/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-file-find-rule" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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="6a397ab5833237f3ca05ed7277b19a7a Data-Compare-1.25.tar.gz" -sha256sums="1d4b36db545fa9fbacd8c012618f6a7846238ee12ab627a2764cfaf45ad4ea73 Data-Compare-1.25.tar.gz" sha512sums="6db1235672030aa1afe52de1de9fac1f8a2af9eed99a3143d6c5b30669908125f584638fe06b8b33208f6d7fb734ccec7381c9411408a3f4fde1998707f748c9 Data-Compare-1.25.tar.gz" |