[arch-commits] Commit in man-pages-zh/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun May 10 10:16:59 UTC 2020


    Date: Sunday, May 10, 2020 @ 10:16:58
  Author: felixonmars
Revision: 626137

archrelease: copy trunk to community-any

Added:
  man-pages-zh/repos/community-any/PKGBUILD
    (from rev 626136, man-pages-zh/trunk/PKGBUILD)
Deleted:
  man-pages-zh/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  104 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 56 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-10 10:16:39 UTC (rev 626136)
+++ PKGBUILD	2020-05-10 10:16:58 UTC (rev 626137)
@@ -1,48 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: dickeny at gmail.com
-# Contributor: cuihao <cuihao dot leo at gmail dot com>
-
-pkgbase=man-pages-zh
-pkgname=(man-pages-zh_cn man-pages-zh_tw)
-pkgver=1.6.3.4
-pkgrel=1
-arch=('any')
-url='https://github.com/man-pages-zh/manpages-zh'
-license=('GPL2')
-depends=('man-db')
-makedepends=('opencc' 'python' 'git')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/man-pages-zh/manpages-zh/archive/v$pkgver.tar.gz")
-sha512sums=('0be686f45670ff97b3d04065ab77791ec5148b3fb8f9c1833eb03aad140fad83dcdee8ba4f05f790abf6e584cd731f9a0511e1fc2f9ac4e87c8396cacacb8876')
-
-build() {
-  cd manpages-zh-$pkgver
-  autoreconf -i
-  ./configure --prefix=/usr
-  make
-}
-
-package_man-pages-zh_cn() {
-  pkgdesc='Simplified Chinese Linux man pages'
-
-  cd manpages-zh-$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/groups*
-}
-
-package_man-pages-zh_tw() {
-  pkgdesc='Traditional Chinese Linux man pages'
-
-  cd manpages-zh-$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/groups*
-}

Copied: man-pages-zh/repos/community-any/PKGBUILD (from rev 626136, man-pages-zh/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-10 10:16:58 UTC (rev 626137)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: dickeny at gmail.com
+# Contributor: cuihao <cuihao dot leo at gmail dot com>
+
+pkgbase=man-pages-zh
+pkgname=(man-pages-zh_cn man-pages-zh_tw)
+pkgver=1.6.3.4
+pkgrel=2
+arch=('any')
+url='https://github.com/man-pages-zh/manpages-zh'
+license=('custom:GFDL1.2')
+depends=('man-db')
+makedepends=('opencc' 'python' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/man-pages-zh/manpages-zh/archive/v$pkgver.tar.gz")
+sha512sums=('0be686f45670ff97b3d04065ab77791ec5148b3fb8f9c1833eb03aad140fad83dcdee8ba4f05f790abf6e584cd731f9a0511e1fc2f9ac4e87c8396cacacb8876')
+
+build() {
+  cd manpages-zh-$pkgver
+  autoreconf -i
+  ./configure --prefix=/usr
+  make
+}
+
+package_man-pages-zh_cn() {
+  pkgdesc='Simplified Chinese Linux man pages'
+
+  cd manpages-zh-$pkgver
+  make install DESTDIR="$pkgdir"
+
+  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
+  mv "$pkgdir"/usr/share/doc/manpages-zh/COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/
+  rmdir "$pkgdir"/usr/share/doc/manpages-zh "$pkgdir"/usr/share/doc
+
+  rm -r "$pkgdir"/usr/share/man/zh_TW
+
+  # remove conflicted files with shadow
+  cd "$pkgdir"/usr/share/man/zh_CN
+  rm ./man1/groups*
+}
+
+package_man-pages-zh_tw() {
+  pkgdesc='Traditional Chinese Linux man pages'
+
+  cd manpages-zh-$pkgver
+  make install DESTDIR="$pkgdir"
+
+  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
+  mv "$pkgdir"/usr/share/doc/manpages-zh/COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/
+  rmdir "$pkgdir"/usr/share/doc/manpages-zh "$pkgdir"/usr/share/doc
+
+  rm -r "$pkgdir"/usr/share/man/zh_CN
+
+  # remove conflicted files with shadow
+  cd "$pkgdir"/usr/share/man/zh_TW
+  rm ./man1/groups*
+}



More information about the arch-commits mailing list