OSDN Git Service

add PKGBUILD for Test-NoWarnings
authorKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 11:30:01 +0000 (20:30 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Sat, 10 Dec 2016 11:30:01 +0000 (20:30 +0900)
perl-Test-NoWarnings/PKGBUILD [new file with mode: 0644]

diff --git a/perl-Test-NoWarnings/PKGBUILD b/perl-Test-NoWarnings/PKGBUILD
new file mode 100644 (file)
index 0000000..f0bc44d
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Test-NoWarnings
+pkgname=perl-${_realname}
+pkgver=1.04
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Make sure you didn't emit any warnings while testing"
+arch=('any')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/A/AD/ADAMK/${_realname}-${pkgver}.tar.gz")
+sha256sums=('638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make test
+}
+
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+}