diff --git a/srcpkgs/pypy/template b/srcpkgs/pypy/template new file mode 100644 index 00000000000..2db5372f0b7 --- /dev/null +++ b/srcpkgs/pypy/template @@ -0,0 +1,27 @@ +# Template file for 'pypy' +pkgname=pypy +version=2.0 +revision=1 +makedepends="python libffi-devel" +short_desc="PyPy is a fast, compliant alternative implementation of the Python language" +maintainer="pancake " +homepage="http://pypy.org/" +license="MIT" +distfiles="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-src.tar.bz2" +checksum=d92dfd418beac915d3efc28f8a2090f3c13a89ec653419deff3d7112c5c111f3 +wrksrc="$pkgname-$version-src" + +do_build() { + python rpython/bin/rpython -Ojit pypy/goal/targetpypystandalone.py +} + +do_install() { + mkdir -p ${DESTDIR}/usr/bin + cp -f pypy-c ${DESTDIR}/usr/bin +} + +pypy_package() { + pkg_install() { + vmove usr + } +}