void-packages/srcpkgs/micropython/template

28 lines
782 B
Bash
Raw Normal View History

2015-02-26 17:04:20 +01:00
# Template file for 'micropython'
pkgname=micropython
2015-08-20 10:31:15 +02:00
version=1.4.5
2015-02-26 17:04:20 +01:00
revision=1
build_wrksrc=unix
2015-08-20 10:31:15 +02:00
hostmakedepends="pkg-config python python3.4"
2015-02-26 20:39:37 +01:00
makedepends="libffi-devel readline-devel"
short_desc="Implementation of Python 3.x for microcontrollers"
2015-02-26 17:04:20 +01:00
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
license="MIT"
homepage="http://micropython.org/"
distfiles="http://github.com/micropython/micropython/archive/v${version}.tar.gz"
2015-08-20 10:31:15 +02:00
checksum=46c4968f1b66219e2c7efb69f2eaea52224e62c51b1759a9d98e9af917bda576
2015-02-26 17:04:20 +01:00
pre_configure() {
sed -i 's|-Werror||;/^COPT =/d' Makefile
}
do_build() {
2015-08-20 10:31:15 +02:00
make V=1 PYTHON=python3.4 \
CC=$CC CFLAGS_EXTRA="$CPPFLAGS $CFLAGS" \
LDFLAGS_EXTRA="$LDFLAGS" STRIP=echo
}
2015-02-26 17:04:20 +01:00
do_install() {
vbin micropython
vbin ../tools/pip-micropython
vlicense ../LICENSE
2015-02-26 17:04:20 +01:00
}