summaryrefslogtreecommitdiff
path: root/perl-test-use-ok
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
committerErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
commitf6e08b5f0a9647bce466a38e9833cdf9b2b034d6 (patch)
tree6a508b21454687aa188deb1ef0490f1af4e7368f /perl-test-use-ok
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe.git.save-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-test-use-ok')
-rw-r--r--perl-test-use-ok/PKGBUILD29
1 files changed, 18 insertions, 11 deletions
diff --git a/perl-test-use-ok/PKGBUILD b/perl-test-use-ok/PKGBUILD
index 8eb4ae42..65c68e80 100644
--- a/perl-test-use-ok/PKGBUILD
+++ b/perl-test-use-ok/PKGBUILD
@@ -4,6 +4,7 @@ pkgname='perl-test-use-ok'
_realname='Test-use-ok'
pkgver='0.11'
pkgrel=2
+_distdir="${_realname}-${pkgver}"
pkgdesc="Alternative to Test::More::use_ok"
arch=('any')
license=('perl')
@@ -12,21 +13,27 @@ options=(!emptydirs)
depends=('perl>=5.8.9')
-source=("http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/${_realname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/${_distdir}.tar.gz")
sha512sums=('ff831546c7a34edfd1a9e574300f6b299fa280ea7d3be6b3285cf173f8695d2dc51a302954dae95d2b1bb5c3f1b945081a06dc703c465ac0d4e229ce81d45293')
build() {
-cd "$_realname-$pkgver"
-# install module in vendor directories.
-export PERL_MM_USE_DEFAULT=1
-perl Makefile.PL
-make
+ cd "${_distdir}"
+ # install module in vendor directories.
+ export PERL_MM_USE_DEFAULT=1
+ perl Makefile.PL
+ make
}
+
+check() {
+ cd "${_distdir}"
+ make test
+}
+
package() {
-cd "$_realname-$pkgver"
-make install INSTALLDIRS=vendor DESTDIR=${pkgdir}
+ cd "${_distdir}"
+ make install INSTALLDIRS=vendor DESTDIR=${pkgdir}
-# remove perllocal.pod and .packlist
-find ${pkgdir} -name perllocal.pod -delete
-find ${pkgdir} -name .packlist -delete
+ # remove perllocal.pod and .packlist
+ find ${pkgdir} -name perllocal.pod -delete
+ find ${pkgdir} -name .packlist -delete
}