diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 53 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ad081fee0b10 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = befungee-git + pkgdesc = Befunge-93 interpreter written in Python with a built-in debugger + pkgver = 20111120 + pkgrel = 1 + url = https://github.com/programble/befungee + arch = any + license = GPL + makedepends = git + depends = python2 + options = !emptydirs + +pkgname = befungee-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c8b40e0e2464 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Your Name <youremail@domain.com> +pkgname=befungee-git +pkgver=20111120 +pkgrel=1 +pkgdesc="Befunge-93 interpreter written in Python with a built-in debugger" +arch=("any") +url="https://github.com/programble/befungee" +license=("GPL") +depends=("python2") +makedepends=("git") +# provides=() +# conflicts=() +# replaces=() +# backup=() +options=(!emptydirs) +# install= +source=() +md5sums=() + +_gitroot=https://github.com/programble/befungee.git +_gitname=befungee + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" +} + +package() { + cd "$srcdir/$_gitname-build" + + sed -e "1s/python/python2/" -i befungee.py + sed -e "1d" -i boards.py funge.py + sed -e "/import sys/asys.path.append(\"/usr/lib/befungee\")" -i befungee.py + + install -m755 -d "$pkgdir/usr/share/befungee" + cp -R examples "$pkgdir/usr/share/befungee" + install -m755 -D befungee.py "$pkgdir/usr/bin/befungee" + install -m644 -D boards.py "$pkgdir/usr/lib/befungee/boards.py" + install -m644 funge.py "$pkgdir/usr/lib/befungee/funge.py" +} |