LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1479|回复: 22

[PKGBUILD]中文man

[复制链接]
发表于 2008-10-31 10:09:46 | 显示全部楼层 |阅读模式
PKGBUILD

  1. # Contributor: firefoxmmx <firefoxmmx@gmail.com>
  2. pkgname=man-pages-zh
  3. pkgver=1.5.1
  4. pkgrel=1
  5. pkgdesc="Man pages for Chinese"
  6. arch=('i686' 'x86_64')
  7. license="GPL"
  8. url=http://www.kernel.org/doc/man-pages
  9. depends=('man' 'deb2targz' 'groff-utf8')
  10. makedepends=('pkgconfig' 'make')
  11. source=(http://cn.archive.ubuntu.com/ubuntu/pool/universe/m/manpages-zh/manpages-zh_${pkgver}-${pkgrel}_all.deb)
  12. install=cman.install
  13. md5sums=('dc1ec6afac468fd9e5870b1db75e5818')

  14. build() {
  15.     deb2targz manpages-zh_${pkgver}-${pkgrel}_all.deb
  16.     tar xvzf manpages-zh_${pkgver}-${pkgrel}_all.tar.gz
  17.     mv usr ../pkg/
  18. }
复制代码

cman.install

  1. post_install() {
  2.     cp /etc/man.conf /etc/man.conf.bak
  3.     sed -i 's@/usr/bin/nroff@/usr/bin/groff-utf8 -Tutf8@' /etc/man.conf
  4.    
  5. }
  6. post_upgrade(){
  7.     post_install() $1
  8. }
  9. post_remove(){
  10.     cp /etc/man.conf.bak /etc/man.conf
  11. }
复制代码


已经上传AUR了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2008-10-31 10:55:20 | 显示全部楼层
谢谢了!..
回复 支持 反对

使用道具 举报

发表于 2008-10-31 10:57:50 | 显示全部楼层
不错,准备下过来试试。。
回复 支持 反对

使用道具 举报

发表于 2008-10-31 11:07:47 | 显示全部楼层
啊,不错,太好了。
回复 支持 反对

使用道具 举报

发表于 2008-10-31 11:26:34 | 显示全部楼层
太好了,这样看man就舒服很多了。
回复 支持 反对

使用道具 举报

发表于 2008-10-31 13:20:13 | 显示全部楼层
哈哈,牛,谢谢lz!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-31 13:34:59 | 显示全部楼层
PKGBUILD和INSTALL如果有什么错误。。请指点一下。。
回复 支持 反对

使用道具 举报

发表于 2008-10-31 21:35:00 | 显示全部楼层
我装了,谢谢.
有个问题,你图上的字体是什么?好漂亮啊~~
还有,man启动瞬间会显示:
<standard input>:686: warning [p 1, 84.3i]: can't break line
<standard input>:698: warning [p 1, 85.8i]: cannot adjust line
<standard input>:700: warning [p 1, 86.5i]: cannot adjust line
<standard input>:701: warning [p 1, 86.8i]: can't break line
<standard input>:703: warning [p 1, 87.2i]: cannot adjust line
<standard input>:704: warning [p 1, 87.3i]: cannot adjust line
不知道怎么弄?
回复 支持 反对

使用道具 举报

发表于 2008-10-31 22:21:50 | 显示全部楼层
yeah!!!!!!
回复 支持 反对

使用道具 举报

发表于 2008-10-31 22:34:23 | 显示全部楼层
Well done!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表