|
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.
- # Contributor: wangyb <arbinger@gmail.com>
- pkgname=zhcon
- pkgver=0.2.6
- pkgrel=0
- pkgdesc="a fast console CJK environment"
- url="http://sourceforge.net/projects/zhcond"
- license="GPL"
- makedepends=('glibc' 'make' 'patch' 'gcc')
- install=
- 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)
- md5sums=(79e1c68aab8341e32129f61c1670baeb 971f68507f9c48a6b5cbee4ba0c1e2a6)
- build() {
- gunzip -dc ../zhcon-0.2.5-to-0.2.6.diff.gz|patch -Np0 -i -
- mv $pkgname-0.2.5 $pkgname-$pkgver
- cd $startdir/src/$pkgname-$pkgver
- ./configure --prefix=/usr
- make || return 1
- make prefix=$startdir/pkg/usr install
- }
复制代码 |
|