OSDN Git Service

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

diff --git a/perl-Spreadsheet-XLSX/PKGBUILD b/perl-Spreadsheet-XLSX/PKGBUILD
new file mode 100644 (file)
index 0000000..39cd799
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Spreadsheet-XLSX
+pkgname=perl-${_realname}
+pkgver=0.15
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Perl extension for reading MS Excel 2007 files;"
+arch=('any')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl-Archive-Zip' 'perl-Test-NoWarnings' 'perl')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/M/MI/MIKEB/${_realname}-${pkgver}.tar.gz")
+sha256sums=('253e90ca3136abb1306ecdee37c910b01c3e6030e49569204f9a39342df5d641')
+
+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}"
+}