wok-6.x view littlefs-fuse/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | c4edaf6370ab |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="littlefs-fuse"
4 VERSION="2.0.0"
5 CATEGORY="base-system"
6 SHORT_DESC="A FUSE wrapper that puts the littlefs in user-space."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/ARMmbed/littlefs-fuse"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="fuse"
15 BUILD_DEPENDS="fuse-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 mkdir -p $install/usr/share/doc
35 cp $src/lfs $fs/usr/bin
36 cp $src/README.md $install/usr/share/doc
37 cp $src/littlefs/DESIGN.md $install/usr/share/doc
38 cp $src/littlefs/SPEC.md $install/usr/share/doc
39 }