1 #Contributor: Javier 'Phrodo_00' Aravena <javier@aravenas.com>
2 #Maintainer: Baptiste Jonglez <zerstorer at free dot fr>
6 pkgdesc="A brainfuck compiler written in brainfuck, able to generate x86 linux binaries, C code, Ruby code, Go code and Tcl code."
7 url="http://code.google.com/p/awib/"
11 makedepends=('sed' 'gcc' 'python2')
13 source=("http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('af3c7a87a6f6a610d7e7c5afa4e7b3dd')
17 cd "$srcdir/$pkgname-$pkgver"
18 sed -i -e 's#python util/bfpp.py#python2 util/bfpp.py#' Makefile
21 # We also provide a brainfuck interpreter (bfint) with various cell size
22 cd "$srcdir/$pkgname-$pkgver/util"
25 cd "$srcdir/$pkgname-$pkgver"
26 install -d -m755 "$pkgdir/usr/bin"
27 install -m755 util/bfint{8,16,32,64} awib "$pkgdir/usr/bin"
29 # maybe add a magic sha-bang at the start of this one?
30 install -m644 awib.b "$pkgdir/usr/bin"
32 install -d -m755 "$pkgdir/usr/share/doc/awib"
33 head -n13 util/bfint.c |sed -e 's/^...//' -e '/\*/d' > "$pkgdir/usr/share/doc/awib/bfint.README"
34 install -m644 README "$pkgdir/usr/share/doc/awib/awib.README"