diff options
author | Kyle Keen | 2015-06-13 00:09:52 -0400 |
---|---|---|
committer | Kyle Keen | 2015-06-13 00:09:52 -0400 |
commit | c71792d06c714ab6f5df6c84f022b674027270c4 (patch) | |
tree | 1f803f85c4510bd591a42476cf4a7acab74e3cd5 /PKGBUILD | |
download | aur-pylisp-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..936377ccfd3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: Kyle Keen <keenerd@gmail.com> +pkgname=pylisp-git +pkgver=20110926 +pkgrel=1 +pkgdesc="Python compatible, Scheme-like with CL style macros and w/o continuations." +url="https://github.com/pavpanchekha/pylisp" +arch=('any') +license=("GPL3") +depends=('python2') +makedepends=('git') +source=('git://github.com/pavpanchekha/pylisp.git') +md5sums=('SKIP') + +_gitname="pylisp" + +pkgver() { + cd "$srcdir/$_gitname" + git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' +} + +build() { + cd "$srcdir/$_gitname" + + find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/python|/usr/bin/env python2|' + find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/env python|/usr/bin/env python2|' + # typo + find ./ -type f | xargs -n 1 sed -i 's|/usr/bin/envv python|/usr/bin/env python2|' + python2 setup.py build +} + +package() { + cd "$srcdir/$_gitname" + python2 setup.py install --prefix=/usr --root="$pkgdir" + # bug? + mv "$pkgdir/usr/pylisp/"* "$pkgdir/usr/lib/python2.7/site-packages/pylisp" + rmdir "$pkgdir/usr/pylisp/" + + # docs + install -d "$pkgdir/usr/share/docs/pylisp/" + install -m644 docs/*.txt "$pkgdir/usr/share/docs/pylisp/" +} |