OSDN Git Service

add PKGBUILD for Unicode-Map
authorKojiro ONO <ono.kojiro@gmail.com>
Thu, 8 Dec 2016 13:18:45 +0000 (22:18 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Thu, 8 Dec 2016 13:18:45 +0000 (22:18 +0900)
perl-Unicode-Map/CP932Excel.map [new file with mode: 0644]
perl-Unicode-Map/PKGBUILD [new file with mode: 0644]
perl-Unicode-Map/Unicode-Map-0.112.patch [new file with mode: 0644]

diff --git a/perl-Unicode-Map/CP932Excel.map b/perl-Unicode-Map/CP932Excel.map
new file mode 100644 (file)
index 0000000..b627c3a
Binary files /dev/null and b/perl-Unicode-Map/CP932Excel.map differ
diff --git a/perl-Unicode-Map/PKGBUILD b/perl-Unicode-Map/PKGBUILD
new file mode 100644 (file)
index 0000000..e780d97
--- /dev/null
@@ -0,0 +1,37 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Unicode-Map
+pkgname=perl-${_realname}
+pkgver=0.112
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="maps charsets from and to utf16 unicode"
+arch=('i686' 'x86_64')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl' 'patch')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/M/MS/MSCHWARTZ/${_realname}-${pkgver}.tar.gz")
+sha256sums=('10f0c2f12ebba57dcd4f46d24cf242c1915d31ec0a4ec36b4df18c9ca0cb4a5a')
+
+prepare() {
+  cd "$srcdir/${_realname}-${pkgver}"
+  cp ${srcdir}/../CP932Excel.map Map/MS/WIN/
+  patch -p2 -i ${srcdir}/../${_realname}-${pkgver}.patch
+}
+
+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}"
+}
diff --git a/perl-Unicode-Map/Unicode-Map-0.112.patch b/perl-Unicode-Map/Unicode-Map-0.112.patch
new file mode 100644 (file)
index 0000000..1f0a2e2
--- /dev/null
@@ -0,0 +1,14 @@
+--- src/Unicode-Map-0.112/Map/REGISTRY.org     2002-03-20 10:11:34.000000000 +0900
++++ src/Unicode-Map-0.112/Map/REGISTRY 2016-12-08 22:04:38.865814700 +0900
+@@ -432,6 +432,11 @@
+ src:     $DestUnicode/VENDORS/MICSFT/WINDOWS/CP932.TXT
+ map:     $DestMap/MS/WIN/CP932.map
++name:    CP932Excel 
++srcURL:  $SrcUnicode/VENDORS/MICSFT/WINDOWS/CP932.TXT
++src:     $DestUnicode/VENDORS/MICSFT/WINDOWS/CP932.TXT
++map:     $DestMap/MS/WIN/CP932Excel.map
++
+ name:    CP936 
+ srcURL:  $SrcUnicode/VENDORS/MICSFT/WINDOWS/CP936.TXT
+ src:     $DestUnicode/VENDORS/MICSFT/WINDOWS/CP936.TXT