# Contributor: Marian # Maintainer: Marian pkgname=micropython pkgver=1.9.2 pkgrel=0 pkgdesc="A lean and efficient Python implementation for MCUs and constrained systems" url="http://www.micropython.org/" # ../py/persistentcode.c:397:2: error: #error mp_raw_code_save_file not implemented for this platform arch="x86 x86_64 armhf" license="MIT" depends="" makedepends="libffi-dev python3" subpackages="$pkgname-cross" source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz 0000-unix-mpconfigport.patch python3.patch " builddir="${srcdir}/${pkgname}-${pkgver}" build() { cd "$builddir" make -C unix PYTHON=python3 } check() { cd "$builddir" # ffi callback fails on kernel with PaX rm tests/unix/ffi_callback.py make -C unix test PYTHON=python3 } package() { cd "$builddir" mkdir -p "${pkgdir}/usr/bin" install -m755 unix/micropython "${pkgdir}/usr/bin/micropython" } cross() { pkgdesc="Compile micropython code to bytecode, which can be transfered to MCUs" cd "$builddir" mkdir -p "${subpkgdir}/usr/bin" install -m755 mpy-cross/mpy-cross "${subpkgdir}/usr/bin/mpy-cross" } sha512sums="f9caa268766e1e312d845d2338f15d9e362cec75d8c2d99d2c32b42aef6e8db018dc58631781fb3da61914d850151d36070ef5f005f432029fedd5ac96cae4a6 micropython-1.9.2.tar.gz 636914a6347b57390de6fb45ff389f751c312b2959f30748c7ce08a4ea95b1eac804812255677aceb24dd5e9f1c9e5f4db9fa4c50f945f4da2623217b45ee360 0000-unix-mpconfigport.patch 66ca172a6e9f4866e733e6c9303882dbb5f5729ffc685e0ba200010bacb8d5014527efd82da4c2ab62266e0816917758ae8e6089fb575ec31c3dc4441909343f python3.patch"