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 | |
download | aur-pylisp-git.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8a666acf0c65 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = pylisp-git + pkgdesc = Python compatible, Scheme-like with CL style macros and w/o continuations. + pkgver = 20110926 + pkgrel = 1 + url = https://github.com/pavpanchekha/pylisp + arch = any + license = GPL3 + makedepends = git + depends = python2 + source = git://github.com/pavpanchekha/pylisp.git + md5sums = SKIP + +pkgname = pylisp-git + 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/" +} |