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

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun May 29 09:27:23 UTC 2022


    Date: Sunday, May 29, 2022 @ 09:27:22
  Author: foutrelis
Revision: 446660

archrelease: copy trunk to staging-any

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

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

Copied: perl-try-tiny/repos/staging-any/PKGBUILD (from rev 446659, perl-try-tiny/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2022-05-29 09:27:22 UTC (rev 446660)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-try-tiny
+pkgver=0.31
+pkgrel=2
+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=('1a3c852e56797d81da60a4f4887cb70fc575eca83d10b8cd12fe5d5d0008a967801218f3a5277a2f1347ade95b9515c1f237333e491742d06614c0beecf44768')
+
+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