LinuxSir.cn,穿越时空的Linuxsir!

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

zhcon-0.2.6 PKGBUILD 无需打patch

[复制链接]
发表于 2006-6-7 12:53:10 | 显示全部楼层 |阅读模式
save the code as PKGBUILD. makepkg.
I tested it using gcc 4.1.1.
no idea wether other gcc version works.
Note: no further patch(es) needed.


  1. # Contributor: wangyb <arbinger@gmail.com>
  2. pkgname=zhcon
  3. pkgver=0.2.6
  4. pkgrel=0
  5. pkgdesc="a fast console CJK environment"
  6. url="http://sourceforge.net/projects/zhcond"
  7. license="GPL"
  8. makedepends=('glibc' 'make' 'patch' 'gcc')
  9. install=
  10. source=(http://surfnet.dl.sourceforge.net/sourceforge/zhcon/zhcon-0.2.5.tar.gz http://switch.dl.sourceforge.net/sourceforge/zhcon/zhcon-0.2.5-to-0.2.6.diff.gz)
  11. md5sums=(79e1c68aab8341e32129f61c1670baeb 971f68507f9c48a6b5cbee4ba0c1e2a6)

  12. build() {
  13.     gunzip -dc ../zhcon-0.2.5-to-0.2.6.diff.gz|patch -Np0 -i -
  14.     mv $pkgname-0.2.5 $pkgname-$pkgver
  15.     cd $startdir/src/$pkgname-$pkgver
  16.     ./configure --prefix=/usr
  17.     make || return 1
  18.     make prefix=$startdir/pkg/usr install
  19. }

复制代码
发表于 2006-6-7 13:42:08 | 显示全部楼层
is gcc4.1.1 in testing branch?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-7 14:08:02 | 显示全部楼层
yeah. add testing  to your pacman.conf
you'll get a bunch of updates.
I've got it work well, no issues found.
回复 支持 反对

使用道具 举报

发表于 2006-6-7 14:17:40 | 显示全部楼层
zhcon-0.2.5-to-0.2.6.diff.gz的md5是不是错了啊
我这里通不过啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-7 14:21:12 | 显示全部楼层
sorry, I unpacked it and then packed it, md5sum changed. now I modified the orignial md5sum.
thanks dude
回复 支持 反对

使用道具 举报

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

本版积分规则

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