1 # Contributor: Kyle Keen <keenerd@gmail.com>
5 pkgdesc="Very python compatible, very Scheme-like with CL style macros and w/o continuations."
6 url="https://github.com/pavpanchekha/pylisp"
14 _gitroot="git://github.com/pavpanchekha/pylisp.git"
19 msg "Connecting to github..."
21 if [ -d "$srcdir"/${_gitname} ] ; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
25 git clone --depth 1 ${_gitroot}
28 msg "GIT checkout done or server timeout"
29 msg "Starting setup.py..."
31 cd "$srcdir/$_gitname"
33 find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/python|/usr/bin/env python2|'
34 find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
36 find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/envv python|/usr/bin/env python2|'
37 python2 setup.py build
41 cd "$srcdir/$_gitname"
42 python2 setup.py install --prefix=/usr --root="$pkgdir"
44 mv "$pkgdir/usr/pylisp/"* "$pkgdir/usr/lib/python2.7/site-packages/pylisp"
45 rmdir "$pkgdir/usr/pylisp/"
48 install -d "$pkgdir/usr/share/docs/pylisp/"
49 install -m644 docs/*.txt "$pkgdir/usr/share/docs/pylisp/"