[arch-commits] Commit in perl-try-tiny/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon May 24 08:36:36 UTC 2021


    Date: Monday, May 24, 2021 @ 08:36:36
  Author: foutrelis
Revision: 416027

archrelease: copy trunk to staging-any

Added:
  perl-try-tiny/repos/staging-any/
  perl-try-tiny/repos/staging-any/PKGBUILD
    (from rev 416026, perl-try-tiny/trunk/PKGBUILD)

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

Copied: perl-try-tiny/repos/staging-any/PKGBUILD (from rev 416026, perl-try-tiny/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2021-05-24 08:36:36 UTC (rev 416027)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-try-tiny
+pkgver=0.30
+pkgrel=6
+pkgdesc="Minimal try/catch with proper localization of \$@"
+arch=('any')
+url="https://search.cpan.org/dist/Try-Tiny"
+license=('MIT')
+depends=('perl')
+options=('!emptydirs')
+source=("https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-${pkgver}.tar.gz")
+sha512sums=('f523736ab0504ca0f7150be312e62988c4b9473a9e8469b0746dc8364945e2922c64c92e95e6c2b5792c5d6399dabea3d00aa45c065155b95519d5658a07216c')
+
+build() {
+  cd Try-Tiny-${pkgver}
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd Try-Tiny-${pkgver}
+  make test
+}
+
+package() {
+  cd Try-Tiny-${pkgver}
+  make DESTDIR="$pkgdir" install
+  # upstream typo :/
+  install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list