[arch-commits] Commit in (4 files)

Felix Yan fyan at nymeria.archlinux.org
Thu Jul 11 02:03:57 UTC 2013


    Date: Thursday, July 11, 2013 @ 04:03:56
  Author: fyan
Revision: 93839

addpkg: man-pages-zh (man-pages-zh_cn/man-pages-zh_tw) 1.5.2-3

Added:
  man-pages-zh/
  man-pages-zh/repos/
  man-pages-zh/trunk/
  man-pages-zh/trunk/PKGBUILD

----------+
 PKGBUILD |   72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

Added: man-pages-zh/trunk/PKGBUILD
===================================================================
--- man-pages-zh/trunk/PKGBUILD	                        (rev 0)
+++ man-pages-zh/trunk/PKGBUILD	2013-07-11 02:03:56 UTC (rev 93839)
@@ -0,0 +1,72 @@
+# Contributor: dickeny at gmail.com
+# Maintainer:  cuihao <cuihao dot leo at gmail dot com>
+
+pkgbase=man-pages-zh
+pkgname=(man-pages-zh_cn man-pages-zh_tw)
+_pkgname=manpages-zh
+pkgver=1.5.2
+pkgrel=3
+arch=('any')
+url=('https://github.com/lidaobing/manpages-zh')
+license=('GPL2')
+makedepends=("zh-autoconvert")
+depends=('man-db')
+conflicts=('man-pages-zh', 'manpages-zh')
+source=("https://github.com/downloads/lidaobing/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2")
+md5sums=('cab232c7bb49b214c2f7ee44f7f35900')
+
+build() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    ./configure --prefix=/usr
+    make
+}
+
+package_man-pages-zh_cn() {
+    pkgdesc='Simplified Chinese Linux man pages'
+
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    make install DESTDIR="${pkgdir}"
+
+    rm -r "${pkgdir}/usr/share/man/zh_TW"
+
+    # remove conflicted files with shadow
+    cd "${pkgdir}/usr/share/man/zh_CN"
+    rm -f \
+        ./man1/chfn* \
+        ./man1/chsh* \
+        ./man1/groups* \
+        ./man1/newgrp* \
+        ./man5/passwd* \
+        ./man8/chpasswd* \
+        ./man8/groupadd* \
+        ./man8/groupdel* \
+        ./man8/groupmod* \
+        ./man8/useradd* \
+        ./man8/userdel* \
+        ./man8/usermod*
+}
+
+package_man-pages-zh_tw() {
+    pkgdesc='Traditional Chinese Linux man pages'
+
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    make install DESTDIR="${pkgdir}"
+
+    rm -r "${pkgdir}/usr/share/man/zh_CN"
+
+    # remove conflicted files with shadow
+    cd "${pkgdir}/usr/share/man/zh_TW"
+    rm -f \
+        ./man1/chfn* \
+        ./man1/chsh* \
+        ./man1/groups* \
+        ./man1/newgrp* \
+        ./man5/passwd* \
+        ./man8/chpasswd* \
+        ./man8/groupadd* \
+        ./man8/groupdel* \
+        ./man8/groupmod* \
+        ./man8/useradd* \
+        ./man8/userdel* \
+        ./man8/usermod*
+}




More information about the arch-commits mailing list