OSDN Git Service

add PKGBUILD for Unicode-Japanese
[msys2-xls2txt/msys2-xls2txt.git] / perl-Unicode-Japanese / PKGBUILD
1 # Maintainer: kojiro ONO <ono.kojiro@gmail.com>
2
3 _realname=Unicode-Japanese
4 pkgname=perl-${_realname}
5 pkgver=0.49
6 pkgrel=1
7 groups=('perl-modules')
8 pkgdesc="Convert encoding of japanese text ja; Unicode::Japanese::JA - 日本語文字コード変換"
9 arch=('i686' 'x86_64')
10 license=('PerlArtistic')
11 url="http://search.cpan.org/dist/${_realname}/"
12 depends=('perl')
13 options=('!emptydirs')
14 source=("http://ftp.cpan.org/pub/CPAN/authors/id/H/HI/HIO/${_realname}-${pkgver}.tar.gz")
15 sha256sums=('ba8b8c76f9b3fa3c5ad7891a41d4e3f50cb7bf456a210dc623791c0aeea87d21')
16
17 build() {
18   cd "${srcdir}/${_realname}-${pkgver}"
19   perl Makefile.PL INSTALLDIRS=vendor
20   make
21 }
22
23 check() {
24   cd "${srcdir}/${_realname}-${pkgver}"
25   make test
26 }
27
28 package() {
29   cd "${srcdir}/${_realname}-${pkgver}"
30   make install DESTDIR="${pkgdir}"
31 }