[arch-commits] Commit in perl-convert-binhex/trunk (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 14 22:31:39 UTC 2021


    Date: Saturday, August 14, 2021 @ 22:31:39
  Author: felixonmars
Revision: 422260

upgpkg: perl-convert-binhex 1.125-9: enable tests and remove redundant install file (FS#71008)

Modified:
  perl-convert-binhex/trunk/PKGBUILD
Deleted:
  perl-convert-binhex/trunk/perl-convert-binhex.install

-----------------------------+
 PKGBUILD                    |   18 ++++++++++--------
 perl-convert-binhex.install |    8 --------
 2 files changed, 10 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-14 20:21:05 UTC (rev 422259)
+++ PKGBUILD	2021-08-14 22:31:39 UTC (rev 422260)
@@ -5,27 +5,29 @@
 
 pkgname=perl-convert-binhex
 pkgver=1.125
-pkgrel=8
+pkgrel=9
 pkgdesc="Perl module to extract data from Macintosh BinHex files"
 arch=('any')
 url="https://search.cpan.org/dist/Convert-BinHex/"
 license=('PerlArtistic')
 depends=('perl')
+checkdepends=('perl-file-slurp' 'perl-test-most')
 options=('!emptydirs')
-install=${pkgname}.install
 source=("https://search.cpan.org/CPAN/authors/id/S/ST/STEPHEN/Convert-BinHex-$pkgver.tar.gz")
 md5sums=('2f485e1283387ead5b92243e1aacff9d')
 
 build() {
-  cd "${srcdir}/Convert-BinHex-${pkgver}"
-
-  # install module in vendor directories.
+  cd Convert-BinHex-$pkgver
   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
+check() {
+  cd Convert-BinHex-$pkgver
+  make test
+}
+
 package() {
-  cd "${srcdir}/Convert-BinHex-${pkgver}"
-
-  make DESTDIR="${pkgdir}/" install
+  cd Convert-BinHex-$pkgver
+  make DESTDIR="$pkgdir" install
 }

Deleted: perl-convert-binhex.install
===================================================================
--- perl-convert-binhex.install	2021-08-14 20:21:05 UTC (rev 422259)
+++ perl-convert-binhex.install	2021-08-14 22:31:39 UTC (rev 422260)
@@ -1,8 +0,0 @@
-post_install() {
-  echo -n "module test... "
-  perl -mConvert::BinHex -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.'
-}
-
-post_upgrade() {
-  post_install
-}



More information about the arch-commits mailing list