wok view micropython/receipt @ rev 25451
Add bluez-gatttool
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Sep 15 07:47:22 2022 +0000 (2022-09-15) |
parents | b942370ae50f |
children | 7364ffdaaa60 |
line source
1 # SliTaz package receipt.
3 PACKAGE="micropython"
4 VERSION="1.0.1"
5 CATEGORY="development"
6 SHORT_DESC="The Micro Python project"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://micropython.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"
13 DEPENDS="readline libffi"
14 BUILD_DEPENDS="wget git readline-dev libffi-dev pkg-config"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|bash|sh|' $src/py/py-version.sh
26 sed -i 's|-lreadline|& -lncurses -ldl -lffi|' $src/unix/Makefile
28 cd unix
29 make -j 1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $src/unix/micropython $fs/usr/bin
37 }