diff options
author | yardenac | 2013-11-13 15:22:45 -0800 |
---|---|---|
committer | yardenac | 2013-11-13 15:22:45 -0800 |
commit | f2b15b02cbc8245feb0a9889df156e89f3505c00 (patch) | |
tree | 6725a60e2f4ba66190685d4b294f3f3d0b0903bf | |
parent | a261685d61ee254e56c06c543d462ecb6c2d7fee (diff) | |
download | aur-f2b15b02cbc8245feb0a9889df156e89f3505c00.tar.gz |
perl-convert-uulib: move module test to build-time
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | install | 8 |
3 files changed, 10 insertions, 10 deletions
@@ -3,7 +3,6 @@ pkgbase = perl-convert-uulib pkgver = 1.4 pkgrel = 3 url = http://search.cpan.org/~mlehmann/Convert-UUlib/ - install = install arch = any license = GPL license = PerlArtistic @@ -16,7 +16,6 @@ url='http://search.cpan.org/~mlehmann/Convert-UUlib/' license=('GPL' 'PerlArtistic') depends=('perl>=5.8.4') options=(!emptydirs) -install="install" source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Convert-UUlib-${pkgver}.tar.gz") md5sums=('a6486df1d9ce319406fb9d5a610da759') @@ -29,6 +28,16 @@ build(){ perl Makefile.PL make } + +check() { + cd "${srcdir}"/"${_dist}"-"${pkgver}" + + unset PERL5LIB PERL_MM_OPT + export PERL_MM_USE_DEFAULT=1 + + make test +} + package() { cd "${srcdir}"/"${_dist}"-"${pkgver}" diff --git a/install b/install deleted file mode 100644 index 41c5d667b446..000000000000 --- a/install +++ /dev/null @@ -1,8 +0,0 @@ -post_install() { - echo -n "module test... " - perl -mConvert::UUlib -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.' -} - -post_upgrade() { - post_install -} |