OSDN Git Service

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

diff --git a/packages/perl-Text-Iconv/PKGBUILD b/packages/perl-Text-Iconv/PKGBUILD
new file mode 100644 (file)
index 0000000..66c05d7
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Text-Iconv
+pkgname=perl-${_realname}
+pkgver=1.7
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Perl interface to iconv() codeset conversion function"
+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/M/MP/MPIOTR/${_realname}-${pkgver}.tar.gz")
+sha256sums=('5b80b7d5e709d34393bcba88971864a17b44a5bf0f9e4bcee383d029e7d2d5c3')
+
+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}"
+}