summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05e08d212420b67bb9973c5bdbb7fa28ff33ded7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Ian Douglas Scott <ian@iandouglasscott.com>

pkgname=rpython
pkgver=0.1.4
pkgrel=2
pkgdesc="Restricted python compiler"
url="http://pypy.org"
arch=('any')
depends=('python2' 'python2-setuptools' 'python2-pytest')
license=('MIT')
source=("https://pypi.python.org/packages/source/r/rpython/rpython-${pkgver}.tar.gz")
md5sums=('680fcee2fed5f94fcb4390130510eec9')

prepare() {
	cd ${pkgname}-$pkgver
	# Put cache in writable location
	sed -i "s|os.path.realpath(os.path.join(MAINDIR, '_cache'))|os.path.expanduser('~/.cache/rpython')|" rpython/config/translationoption.py
}

package() {
	cd ${pkgname}-$pkgver
	python2 setup.py install --root="${pkgdir}" --optimize=1
}