[arch-commits] Commit in man-pages-zh/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Dec 15 09:07:35 UTC 2016
Date: Thursday, December 15, 2016 @ 09:07:35
Author: felixonmars
Revision: 199467
upgpkg: man-pages-zh 1.5.4.1-1
Modified:
man-pages-zh/trunk/PKGBUILD
----------+
PKGBUILD | 49 ++++++++++++-------------------------------------
1 file changed, 12 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-12-15 09:07:10 UTC (rev 199466)
+++ PKGBUILD 2016-12-15 09:07:35 UTC (rev 199467)
@@ -4,20 +4,19 @@
pkgbase=man-pages-zh
pkgname=(man-pages-zh_cn man-pages-zh_tw)
-_pkgname=manpages-zh
-pkgver=1.5.2
-pkgrel=3
+pkgver=1.5.4.1
+pkgrel=1
arch=('any')
-url=('https://github.com/lidaobing/manpages-zh')
+url='https://github.com/man-pages-zh/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')
+makedepends=('zh-autoconvert' 'git')
+source=("git+https://github.com/man-pages-zh/manpages-zh.git#tag=v$pkgver")
+md5sums=('SKIP')
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/manpages-zh"
+ autoreconf -i
./configure --prefix=/usr
make
}
@@ -25,7 +24,7 @@
package_man-pages-zh_cn() {
pkgdesc='Simplified Chinese Linux man pages'
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/manpages-zh"
make install DESTDIR="${pkgdir}"
rm -r "${pkgdir}/usr/share/man/zh_TW"
@@ -32,25 +31,13 @@
# 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*
+ rm -f ./man1/groups*
}
package_man-pages-zh_tw() {
pkgdesc='Traditional Chinese Linux man pages'
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/manpages-zh"
make install DESTDIR="${pkgdir}"
rm -r "${pkgdir}/usr/share/man/zh_CN"
@@ -57,17 +44,5 @@
# 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*
+ rm -f ./man1/groups*
}
More information about the arch-commits
mailing list