summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: caac544391a64454b32daacb10d5ec1c3c2c9140 (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 D. Scott <ian@perebruin.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
}