[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Sun Mar 29 22:53:59 UTC 2020


    Date: Sunday, March 29, 2020 @ 22:53:59
  Author: anthraxx
Revision: 606610

addpkg: perl-sub-override 0.09-1

Added:
  perl-sub-override/
  perl-sub-override/repos/
  perl-sub-override/trunk/
  perl-sub-override/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: perl-sub-override/trunk/PKGBUILD
===================================================================
--- perl-sub-override/trunk/PKGBUILD	                        (rev 0)
+++ perl-sub-override/trunk/PKGBUILD	2020-03-29 22:53:59 UTC (rev 606610)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=perl-sub-override
+_cpanname=Sub-Override
+pkgver=0.09
+pkgrel=1
+pkgdesc='Perl extension for easily overriding subroutines'
+url='https://search.cpan.org/dist/Term-ExtendedColor'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+checkdepends=('perl-test-fatal')
+options=('!emptydirs')
+source=(https://search.cpan.org/CPAN/authors/id/O/OV/OVID/${_cpanname}-${pkgver}.tar.gz)
+sha256sums=('939a67c1f729968e0cc81b74958db750e1bdb7c020bee1a263332f422c2e25b5')
+sha512sums=('35000e8cabb6ca4cc0cac53af99fc9cb8ac14b1e71dbfa27dc58a339cb1b54e439064f2241798e351cc5ad297a2f9e4fde870ca97e2eb09a2430c11af589d412')
+
+build() {
+  cd ${_cpanname}-${pkgver}
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd ${_cpanname}-${pkgver}
+  make test
+}
+
+package() {
+  cd ${_cpanname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 README* -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list