OSDN Git Service

add PKGBUILD for Excel-Writer-XLSX
authorKojiro ONO <ono.kojiro@gmail.com>
Sun, 11 Dec 2016 13:21:32 +0000 (22:21 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Sun, 11 Dec 2016 13:21:32 +0000 (22:21 +0900)
packages/perl-Excel-Writer-XLSX/PKGBUILD [new file with mode: 0644]

diff --git a/packages/perl-Excel-Writer-XLSX/PKGBUILD b/packages/perl-Excel-Writer-XLSX/PKGBUILD
new file mode 100644 (file)
index 0000000..76ee6a5
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Excel-Writer-XLSX
+pkgname=perl-${_realname}
+pkgver=0.95
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Create a new file in the Excel 2007+ XLSX format."
+arch=('i686' 'x86_64')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/J/JM/JMCNAMARA/${_realname}-${pkgver}.tar.gz")
+sha256sums=('fc2b585c510e49ef861cbe3299129dfc8947f36c6ab3b1be20aa27b26fefcd0f')
+
+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}"
+}