wok-6.x annotate micropython/receipt @ rev 20703
Up clamtk (4.37)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue Feb 05 14:03:17 2019 -0500 (2019-02-05) |
parents | 41942ece735f |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
al@16736 | 1 # SliTaz package receipt. |
al@16736 | 2 |
al@16736 | 3 PACKAGE="micropython" |
al@16736 | 4 VERSION="1.0.1" |
al@16736 | 5 CATEGORY="development" |
al@16736 | 6 SHORT_DESC="The Micro Python project" |
al@16736 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16736 | 8 LICENSE="MIT" |
al@16736 | 9 WEB_SITE="http://micropython.org/" |
al@16736 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@16736 | 11 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" |
al@16736 | 12 |
al@16736 | 13 DEPENDS="readline libffi" |
pascal@17732 | 14 BUILD_DEPENDS="wget git readline-dev libffi-dev pkg-config" |
al@16736 | 15 |
al@16736 | 16 # Rules to configure and make the package. |
al@16736 | 17 compile_rules() |
al@16736 | 18 { |
al@16736 | 19 sed -i 's|bash|sh|' $src/py/py-version.sh |
pascal@17732 | 20 sed -i 's|-lreadline|& -lncurses -ldl -lffi|' $src/unix/Makefile |
al@16736 | 21 |
al@16736 | 22 cd unix |
pascal@17732 | 23 make -j 1 |
al@16736 | 24 } |
al@16736 | 25 |
al@16736 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16736 | 27 genpkg_rules() |
al@16736 | 28 { |
al@16736 | 29 mkdir -p $fs/usr/bin |
al@16736 | 30 cp -a $src/unix/micropython $fs/usr/bin |
al@16736 | 31 } |