diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:01 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:03 +0000 |
commit | 62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch) | |
tree | 3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-file-find-rule | |
parent | 826feb495ee579cc205840c86feb60a363cd72ff (diff) | |
download | aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.bz2 aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.xz |
community/perl-[e-f]*: 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-file-find-rule')
-rw-r--r-- | community/perl-file-find-rule/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-file-find-rule/APKBUILD b/community/perl-file-find-rule/APKBUILD index 808713c076..02808b32b6 100644 --- a/community/perl-file-find-rule/APKBUILD +++ b/community/perl-file-find-rule/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-file-find-rule _pkgreal=File-Find-Rule pkgver=0.34 -pkgrel=0 +pkgrel=1 pkgdesc="unknown" url="http://search.cpan.org/dist/File-Find-Rule/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-text-glob perl-number-compare" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_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="a7aa9ad4d8ee87b2a77b8e3722768712 File-Find-Rule-0.34.tar.gz" -sha256sums="7e6f16cc33eb1f29ff25bee51d513f4b8a84947bbfa18edb2d3cc40a2d64cafe File-Find-Rule-0.34.tar.gz" sha512sums="97328a86578942d214f7ac530cc88fc84dc7ef2018db06b8c0c58907a4045e90c9c97d1848ed4f16838bd8ca591aca4fa9f24649c81fd8dfe9efe7a2f9f2722c File-Find-Rule-0.34.tar.gz" |