diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 12 insertions, 25 deletions
@@ -1,11 +1,8 @@ # Maintainer: Kyle Keen <keenerd@gmail.com> pkgbase=micropython pkgname=(micropython micropython-lib) -pkgver=1.13 +pkgver=1.14 _libver=1.9.3 -# stupid submodules -_axver=1.8.2 -_ffiver=3.3 pkgrel=1 pkgdesc="Python3 for microcontrollers, with stdlib. (unix version)" arch=('i686' 'x86_64') @@ -14,18 +11,11 @@ license=('MIT') depends=('readline' 'libffi' 'mbedtls') makedepends=('python' 'python-setuptools' 'git') options=('!emptydirs') -source=("mpy-$pkgver.tgz::https://github.com/micropython/micropython/archive/v$pkgver.tar.gz" - "mlib-$_libver.tgz::https://github.com/micropython/micropython-lib/archive/v$_libver.tar.gz" - "axtls-$_axver.tgz::https://github.com/pfalcon/axtls/archive/v$_axver.tar.gz" # completely broken - "ffi-$_ffiver.tgz::https://github.com/libffi/libffi/archive/v$_ffiver.tar.gz" - "bdb.tgz::https://github.com/pfalcon/berkeley-db-1.xx/archive/embedded.tar.gz") # submodule with no releases! -# What about the lwip submodule? The repo is GONE. You didn't need an IP stack anyway. -# Maybe http://download.savannah.gnu.org/releases/lwip/lwip-2.0.0.zip is it? -md5sums=('219d12f6017cd8a89a3c316e1c096091' - '1752ce13e851a671a07ce3f7a807b21c' - 'e11da4ef04499030d1eff69b474f34f0' - 'f25aefb928eed09e858878382e10641f' - 'SKIP') +# They finally have a real release, without all the submodule garbage. +source=("https://micropython.org/resources/source/micropython-$pkgver.tar.xz" + "mlib-$_libver.tgz::https://github.com/micropython/micropython-lib/archive/v$_libver.tar.gz") +md5sums=('5db292b2bc1758b7d7062afbe9b0db0f' + '1752ce13e851a671a07ce3f7a807b21c') @@ -33,15 +23,6 @@ md5sums=('219d12f6017cd8a89a3c316e1c096091' # fix 'imported as namespace package' warnings from stdlib prepare() { - cd "$srcdir/micropython-$pkgver/lib" - # fix submodules - rmdir axtls - rmdir libffi - rmdir berkeley-db-1.xx - ln -s "$srcdir/axtls-$_axver" axtls - ln -s "$srcdir/libffi-$_ffiver" libffi - ln -s "$srcdir/berkeley-db-1.xx-embedded" berkeley-db-1.xx - # fix makefile cd "$srcdir/micropython-$pkgver/ports/unix" sed -i 's|/local||' Makefile @@ -66,6 +47,7 @@ build() { check() { cd "$srcdir/micropython-$pkgver/ports/unix" + # some tests appear non-deterministic #make test } @@ -90,6 +72,11 @@ package_micropython-lib() { error "Skipping $_d (no setup)" continue fi + # todo: fixing this probably involves overriding PYTHONPATH + if [[ "$_d" == "./types" ]]; then + error "Skipping $_d (unresolved name collision)" + continue + fi msg "Installing $_d" cd $_d python3 setup.py install --prefix=/usr --root="$pkgdir" --install-lib='/usr/lib/micropython' |