-
-
Save jimmo/426d88ce30361aed3a540d9af08ecdb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Aman Gupta <aman.iv0012@gmail.com> | |
pkgbase=micropython | |
pkgname=(micropython) | |
pkgver=1.21.0 | |
pkgrel=1 | |
pkgdesc="Python3 for microcontrollers (UNIX version)" | |
arch=('i686' 'x86_64') | |
url="http://micropython.org/" | |
license=('MIT') | |
depends=('readline' 'libffi' 'mbedtls') | |
makedepends=('python' 'python-setuptools' 'git') | |
options=('!emptydirs') | |
source=("https://micropython.org/resources/source/micropython-$pkgver.tar.xz") | |
md5sums=('7f3ec4862c47f83883868c8b7fdbff40') | |
build() { | |
cd "$srcdir/micropython-$pkgver/mpy-cross" | |
make | |
cd "$srcdir/micropython-$pkgver/ports/unix" | |
make | |
} | |
check() { | |
cd "$srcdir/micropython-$pkgver/ports/unix" | |
make test | |
} | |
package_micropython() { | |
cd "$srcdir/micropython-$pkgver/ports/unix" | |
make PREFIX=/usr DESTDIR="$pkgdir" install | |
cd "$srcdir/micropython-$pkgver" | |
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment