OSDN Git Service

add PKGBUILD for perl-Jcode
authorKojiro ONO <ono.kojiro@gmail.com>
Sat, 7 Jan 2017 13:22:19 +0000 (22:22 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Sat, 7 Jan 2017 13:22:19 +0000 (22:22 +0900)
packages/perl-Jcode/PKGBUILD [new file with mode: 0644]

diff --git a/packages/perl-Jcode/PKGBUILD b/packages/perl-Jcode/PKGBUILD
new file mode 100644 (file)
index 0000000..7b55ed3
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Jcode
+pkgname=perl-${_realname}
+pkgver=2.07
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Japanese Charset Handler"
+arch=('any')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/D/DA/DANKOGAI/${_realname}-${pkgver}.tar.gz")
+sha256sums=('ed1ce473ec869089e52016cfc8355165ebc37be9694ba4e829c7eb4ba1c45f8d')
+
+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}"
+}