wok annotate micropython/receipt @ rev 25656
Up fwknop (2.6.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 09 11:08:06 2024 +0000 (7 months ago) |
parents | 5ea0ce1cecc0 |
children |
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 |
pascal@25600 | 16 # What is the latest version available today? |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25600 | 20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@16736 | 23 # Rules to configure and make the package. |
al@16736 | 24 compile_rules() |
al@16736 | 25 { |
al@16736 | 26 sed -i 's|bash|sh|' $src/py/py-version.sh |
pascal@17732 | 27 sed -i 's|-lreadline|& -lncurses -ldl -lffi|' $src/unix/Makefile |
al@16736 | 28 |
al@16736 | 29 cd unix |
pascal@17732 | 30 make -j 1 |
al@16736 | 31 } |
al@16736 | 32 |
al@16736 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16736 | 34 genpkg_rules() |
al@16736 | 35 { |
al@16736 | 36 mkdir -p $fs/usr/bin |
al@16736 | 37 cp -a $src/unix/micropython $fs/usr/bin |
al@16736 | 38 } |