1 # Maintainer: Jens Staal <staal1978@gmail.com>
6 pkgdesc="A port of the plan9 c-compiler, including its POSIX mode"
9 url="http://gsoc.cat-v.org/projects/kencc/"
10 depends=('plan9port') #altertantive dependency: 9base
11 makedepends=('mercurial' 'inferno-os' 'unionfs-fuse') #only inferno iar needed, waste...
12 source=('pccmk.patch' 'libcsumk.patch')
13 md5sums=('7ebeb83bc1c543b714ad3a467bc57364' 'eea2eb3baedcfdd26e382bf77c05f6c9')
18 # Update the repo, else clone a new one
24 hg clone http://hg.cat-v.org/kenc/
28 PATH=/opt/plan9/bin:/opt/inferno-os/Linux/386/bin/:$PATH export PATH
31 LIBDIR=$PLAN9/lib export LIBDIR
34 cp -ar $srcdir/kenc $srcdir/build
41 mkdir $pkgdir/opt/plan9
42 mkdir $pkgdir/opt/plan9/bin
46 unionfs -o cow -o umask=000 $pkgdir/opt/plan9=RW:/opt/plan9=RO $srcdir/tmp
48 home=$pkgdir/opt/plan9 export home
49 PLAN9=$srcdir/tmp export PLAN9
51 patch -p0 $srcdir/build/pcc/mkfile -i $srcdir/pccmk.patch
52 patch -p0 $srcdir/build/libcsu/mkfile -i $srcdir/libcsumk.patch
56 fusermount -u $srcdir/tmp
57 install -Dm644 $srcdir/kenc/LICENCE $pkgdir/usr/share/licences/kencc/LICENCE