wok-6.x annotate firmware-mod-kit/receipt @ rev 25438
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 01 11:12:31 2022 +0000 (23 months ago) |
parents | ce4fc4b24242 |
children |
rev | line source |
---|---|
pascal@14900 | 1 # SliTaz package receipt. |
pascal@14900 | 2 |
pascal@14900 | 3 PACKAGE="firmware-mod-kit" |
pascal@22697 | 4 VERSION="0.99git20190714" |
pascal@22697 | 5 GITHASH=104c8213f66d3aa9f9a2449f5d80638ad13c30dc |
pascal@14900 | 6 CATEGORY="misc" |
pascal@14900 | 7 SHORT_DESC="Scripts and utilities to rebuild openwrt based images." |
pascal@14900 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15178 | 9 LICENSE="MIT" |
pascal@20116 | 10 TARBALL="fmk_$VERSION.zip" |
pascal@20116 | 11 WEB_SITE="https://github.com/rampageX/firmware-mod-kit/wiki" |
pascal@20116 | 12 WGET_URL="https://github.com/rampageX/firmware-mod-kit/archive/$GITHASH.zip" |
pascal@19689 | 13 TAGS="openwrt" |
pascal@14900 | 14 |
pascal@20116 | 15 DEPENDS="liblzma zlib bash python-magic coreutils-file-special make gcc \ |
pascal@20116 | 16 linux-api-headers" |
pascal@14900 | 17 BUILD_DEPENDS="liblzma-dev zlib-dev" |
pascal@14900 | 18 |
pascal@24308 | 19 # What is the latest version available today? |
pascal@24308 | 20 current_version() |
pascal@24308 | 21 { |
pascal@24308 | 22 wget -O - https://github.com/rampageX/firmware-mod-kit/tags 2>/dev/null | \ |
pascal@24308 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 24 } |
pascal@24308 | 25 |
pascal@14900 | 26 # Rules to configure and make the package. |
pascal@14900 | 27 compile_rules() |
pascal@14900 | 28 { |
pascal@14900 | 29 cd $src/src |
pascal@14900 | 30 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@14900 | 31 --mandir=/usr/share/man \ |
pascal@14900 | 32 $CONFIGURE_ARGS && make -j 1 |
pascal@14900 | 33 } |
pascal@14900 | 34 |
pascal@14900 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14900 | 36 genpkg_rules() |
pascal@14900 | 37 { |
pascal@14900 | 38 |
pascal@20116 | 39 mkdir -p $fs/usr/share |
pascal@14900 | 40 cp -a $src $fs/usr/share/firmware-mod-kit |
pascal@14900 | 41 } |
pascal@20116 | 42 |
pascal@20116 | 43 post_install() |
pascal@20116 | 44 { |
pascal@20116 | 45 cat <<EOT |
pascal@20116 | 46 Usage: |
pascal@20116 | 47 # cd /usr/share/firmware-mod-kit |
pascal@20116 | 48 # ./extract-firmware.sh firmware.bin |
pascal@20116 | 49 # echo Now tune the firmware in fmk/ ... |
pascal@20116 | 50 # ./build-firmware.sh |
pascal@20116 | 51 EOT |
pascal@20116 | 52 } |