mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 07:22:22 +01:00
Initial commit
This commit is contained in:
commit
7e2c3f8f8d
3 changed files with 72 additions and 0 deletions
13
.SRCINFO
Normal file
13
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
*.tar.gz
|
||||
*.tar.bz2
|
||||
*.tar.xz
|
||||
*.tar.lz
|
||||
src/
|
||||
pkg/
|
||||
53
PKGBUILD
Normal file
53
PKGBUILD
Normal file
|
|
@ -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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue