core/man-pages-zh/PKGBUILD

52 lines
1.2 KiB
Bash
Raw Normal View History

2017-02-15 15:59:44 +08:00
# Contributions from Arch:
# 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
pkgrel=1
arch=('any')
2017-02-15 15:59:44 +08:00
url=('https://github.com/man-pages-zh/manpages-zh')
license=('GPL2')
depends=('man-db')
2017-02-15 15:59:44 +08:00
makedepends=('opencc' 'python3' 'git')
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')
build() {
2017-02-15 15:59:44 +08:00
cd "${srcdir}/manpages-zh"
autoreconf -i
./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"
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*
}
package_man-pages-zh_tw() {
pkgdesc='Traditional Chinese Linux man pages'
2017-02-15 15:59:44 +08:00
cd "${srcdir}/manpages-zh"
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*
}