wok-current view firmware-mod-kit/receipt @ rev 25368

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