1 # Maintainer: Your Name <youremail@domain.com>
5 pkgdesc="Befunge-93 interpreter written in Python with a built-in debugger"
7 url="https://github.com/programble/befungee"
20 _gitroot=https://github.com/programble/befungee.git
25 msg "Connecting to GIT server...."
27 if [[ -d "$_gitname" ]]; then
28 cd "$_gitname" && git pull origin
29 msg "The local files are updated."
31 git clone "$_gitroot" "$_gitname"
34 msg "GIT checkout done or server timeout"
35 msg "Starting build..."
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
44 sed -e "1s/python/python2/" -i befungee.py
45 sed -e "1d" -i boards.py funge.py
46 sed -e "/import sys/asys.path.append(\"/usr/lib/befungee\")" -i befungee.py
48 install -m755 -d "$pkgdir/usr/share/befungee"
49 cp -R examples "$pkgdir/usr/share/befungee"
50 install -m755 -D befungee.py "$pkgdir/usr/bin/befungee"
51 install -m644 -D boards.py "$pkgdir/usr/lib/befungee/boards.py"
52 install -m644 funge.py "$pkgdir/usr/lib/befungee/funge.py"