summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakuro onoue2016-01-25 17:55:45 +0900
committerTakuro onoue2016-01-25 17:55:45 +0900
commit8224fb5723d6028d35138f9f172a3fa1a425f22c (patch)
tree414b49823a973e67eaa0b042ff5cdf4868c4f8e8
downloadaur-8224fb5723d6028d35138f9f172a3fa1a425f22c.tar.gz
first commit
-rw-r--r--.SRCINFO16
-rw-r--r--Makefile.diff11
-rw-r--r--PKGBUILD46
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..93f8e0bba6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Mon Jan 25 08:44:05 UTC 2016
+pkgbase = man-pages-openssh-ja
+ pkgdesc = Japanese Man pages for the OpenSSH
+ pkgver = 6.9p1
+ pkgrel = 1
+ url = http://euske.github.io/openssh-jman/
+ arch = any
+ license = BSD
+ source = http://euske.github.io/openssh-jman/openssh-jman-690p1.tar.gz
+ source = Makefile.diff
+ md5sums = aa3447eb37f6c639086bc8b66ae8113f
+ md5sums = c32945f7c6589af10f900bc8ff1462df
+
+pkgname = man-pages-openssh-ja
+
diff --git a/Makefile.diff b/Makefile.diff
new file mode 100644
index 00000000000..f7b1d248fa3
--- /dev/null
+++ b/Makefile.diff
@@ -0,0 +1,11 @@
+--- Makefile 2016-01-25 15:49:44.575291789 +0900
++++ Makefile.new 2016-01-25 14:06:37.604933414 +0900
+@@ -10,7 +10,7 @@
+ RM=rm -f
+ CP=cp -f
+ TAR=tar
+-PYTHON=python
++PYTHON=python2
+ ROFF2HTML=$(PYTHON) roff2html.py -s $(VERSION)
+
+ DISTNAME=$(PACKAGE)-$(VERSION2)
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1eb70b01e7d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: kusanaginoturugi <kusanaginoturugi at gmail dot com>
+pkgname=man-pages-openssh-ja
+pkgver=6.9p1
+pkgrel=1
+pkgdesc="Japanese Man pages for the OpenSSH"
+arch=('any')
+url="http://euske.github.io/openssh-jman/"
+license=('BSD')
+source=('http://euske.github.io/openssh-jman/openssh-jman-690p1.tar.gz'
+ 'Makefile.diff')
+md5sums=('aa3447eb37f6c639086bc8b66ae8113f'
+ 'c32945f7c6589af10f900bc8ff1462df')
+
+build() {
+ cd ${srcdir}
+
+ patch -i ${srcdir}/Makefile.diff
+
+ mkdir man
+ for i in *.[158]; do
+ iconv -f EUCJP -t UTF8 ${i} -o man/${i}
+ done
+
+ make
+}
+
+package() {
+ install -D -m644 ${srcdir}/README.txt "${pkgdir}/usr/share/doc/${pkgname}/README.txt"
+ install -D -m644 ${srcdir}/*.html "${pkgdir}/usr/share/doc/${pkgname}/"
+
+ cd $srcdir/man
+ for i in 1 5 8; do
+ if [ ! -e "${pkgdir}/usr/share/man/ja_JP.UTF-8/man${i}/" ]; then
+ mkdir -p "${pkgdir}/usr/share/man/ja_JP.UTF-8/man${i}/"
+ chmod 755 "${pkgdir}/usr/share/man/ja_JP.UTF-8/man${i}/"
+ fi
+
+ # To copy a noexistent man only.
+ for f in *.${i} ; do
+ if [ ! -e /usr/share/man/ja_JP.UTF-8/man${i}/${f}.gz ]; then
+ cp ${f} "${pkgdir}/usr/share/man/ja_JP.UTF-8/man${i}/${f}"
+ chmod 644 *.${i}
+ fi
+ done
+ done
+}