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

Evangelos Foutras foutrelis at archlinux.org
Sat Aug 26 12:16:48 UTC 2017


    Date: Saturday, August 26, 2017 @ 12:16:46
  Author: foutrelis
Revision: 303884

archrelease: copy trunk to staging-any

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

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

Copied: perl-try-tiny/repos/staging-any/PKGBUILD (from rev 303883, perl-try-tiny/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2017-08-26 12:16:46 UTC (rev 303884)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-try-tiny
+pkgver=0.28
+pkgrel=3
+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")
+sha1sums=('70dc6bfc6b6cdba3bc7262fe7b2ee488934b3095')
+
+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