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

Felix Yan felixonmars at archlinux.org
Wed Aug 1 09:06:51 UTC 2018


    Date: Wednesday, August 1, 2018 @ 09:06:51
  Author: felixonmars
Revision: 329961

archrelease: copy trunk to staging-any

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

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

Copied: perl-try-tiny/repos/staging-any/PKGBUILD (from rev 329959, perl-try-tiny/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2018-08-01 09:06:51 UTC (rev 329961)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-try-tiny
+pkgver=0.30
+pkgrel=2
+pkgdesc="Minimal try/catch with proper localization of \$@"
+arch=('any')
+url="http://search.cpan.org/dist/Try-Tiny"
+license=('MIT')
+depends=('perl')
+options=('!emptydirs')
+source=("http://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