2017-02-15 15:59:44 +08:00
|
|
|
# Contributions from Arch:
|
2015-03-25 17:58:45 +08:00
|
|
|
# Maintainer: Felix Yan <felixonmars@gmail.com>
|
|
|
|
# Contributor: dickeny@gmail.com
|
|
|
|
# Contributor: cuihao <cuihao dot leo at gmail dot com>
|
|
|
|
|
|
|
|
pkgbase=man-pages-zh
|
|
|
|
pkgname=(man-pages-zh_cn man-pages-zh_tw)
|
|
|
|
_pkgname=manpages-zh
|
2017-04-05 15:39:04 +08:00
|
|
|
pkgver=1.6.3
|
2015-03-25 17:58:45 +08:00
|
|
|
pkgrel=1
|
|
|
|
arch=('any')
|
2017-02-15 15:59:44 +08:00
|
|
|
url=('https://github.com/man-pages-zh/manpages-zh')
|
2015-03-25 17:58:45 +08:00
|
|
|
license=('GPL2')
|
|
|
|
depends=('man-db')
|
2017-02-15 15:59:44 +08:00
|
|
|
makedepends=('opencc' 'python3' 'git')
|
2015-03-25 17:58:45 +08:00
|
|
|
conflicts=('man-pages-zh', 'manpages-zh')
|
2017-02-15 15:59:44 +08:00
|
|
|
source=("git+https://github.com/man-pages-zh/manpages-zh.git#tag=v$pkgver")
|
|
|
|
md5sums=('SKIP')
|
2015-03-25 17:58:45 +08:00
|
|
|
|
|
|
|
build() {
|
2017-02-15 15:59:44 +08:00
|
|
|
cd "${srcdir}/manpages-zh"
|
|
|
|
autoreconf -i
|
2015-03-25 17:58:45 +08:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_man-pages-zh_cn() {
|
|
|
|
pkgdesc='Simplified Chinese Linux man pages'
|
|
|
|
|
2017-02-15 15:59:44 +08:00
|
|
|
cd "${srcdir}/manpages-zh"
|
2015-03-25 17:58:45 +08:00
|
|
|
make install DESTDIR="${pkgdir}"
|
|
|
|
|
|
|
|
rm -r "${pkgdir}/usr/share/man/zh_TW"
|
|
|
|
|
|
|
|
# remove conflicted files with shadow
|
|
|
|
cd "${pkgdir}/usr/share/man/zh_CN"
|
2017-02-15 15:59:44 +08:00
|
|
|
rm -f ./man1/groups*
|
2015-03-25 17:58:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_man-pages-zh_tw() {
|
|
|
|
pkgdesc='Traditional Chinese Linux man pages'
|
|
|
|
|
2017-02-15 15:59:44 +08:00
|
|
|
cd "${srcdir}/manpages-zh"
|
2015-03-25 17:58:45 +08:00
|
|
|
make install DESTDIR="${pkgdir}"
|
|
|
|
|
|
|
|
rm -r "${pkgdir}/usr/share/man/zh_CN"
|
|
|
|
|
|
|
|
# remove conflicted files with shadow
|
|
|
|
cd "${pkgdir}/usr/share/man/zh_TW"
|
2017-02-15 15:59:44 +08:00
|
|
|
rm -f ./man1/groups*
|
2015-03-25 17:58:45 +08:00
|
|
|
}
|