wok annotate ventoy/receipt @ rev 25510
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 20:36:56 2023 +0000 (19 months ago) |
parents | 4f8f9f8879e3 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@24143 | 1 # SliTaz package receipt. |
pascal@24143 | 2 |
pascal@24143 | 3 PACKAGE="ventoy" |
pascal@24295 | 4 VERSION="1.0.64" |
pascal@24143 | 5 CATEGORY="misc" |
pascal@24143 | 6 SHORT_DESC="A tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files." |
pascal@24143 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24143 | 8 LICENSE="GPL3" |
pascal@24143 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24143 | 10 WEB_SITE="https://ventoy.net/en/index.html" |
pascal@24143 | 11 WGET_URL="https://github.com/ventoy/Ventoy/archive/refs/tags/v$VERSION.tar.gz" |
pascal@24143 | 12 EXTRA_SOURCE_FILES="$PACKAGE-bin-$VERSION.tar.gz" |
pascal@24145 | 13 HOST_ARCH="i486" |
pascal@24143 | 14 |
pascal@24159 | 15 DEPENDS="slitaz-tools exfat-utils" |
pascal@24144 | 16 SUGGESTED="tazweb" |
pascal@24143 | 17 |
pascal@24143 | 18 current_version() |
pascal@24143 | 19 { |
pascal@24143 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24143 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24143 | 22 } |
pascal@24143 | 23 |
pascal@24143 | 24 # Rules to configure and make the package. |
pascal@24143 | 25 compile_rules() |
pascal@24143 | 26 { |
pascal@24159 | 27 sed -i 's|^build_func |#&|;s|#\(build_func .*i386\)|\1|;s|-l pthread|& -l rt|' \ |
pascal@24159 | 28 LinuxGUI/build.sh Plugson/build.sh |
pascal@24144 | 29 cd LinuxGUI && sh build.sh |
pascal@24159 | 30 cd ../Plugson && sh build.sh |
pascal@24143 | 31 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || |
pascal@24143 | 32 wget --no-check-certificate -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES \ |
pascal@24143 | 33 "https://github.com/ventoy/Ventoy/releases/download/v$VERSION/ventoy-$VERSION-linux.tar.gz" |
pascal@24143 | 34 } |
pascal@24143 | 35 |
pascal@24143 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24143 | 37 genpkg_rules() |
pascal@24143 | 38 { |
pascal@24143 | 39 mkdir -p $fs/usr/share/applications |
pascal@24143 | 40 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES -C $fs/usr/share/ |
pascal@24143 | 41 mv $fs/usr/share/ventoy-$VERSION $fs/usr/share/ventoy |
pascal@24143 | 42 rm -f $fs/usr/share/ventoy/VentoyGUI* $fs/usr/share/ventoy/*.exe |
pascal@24146 | 43 rm -f $fs/usr/share/ventoy/tool/i386/*.qt? $fs/usr/share/ventoy/tool/i386/*.gtk? |
pascal@24144 | 44 rm -f $fs/usr/share/ventoy/tool/i386/V2DServer* |
pascal@24144 | 45 rm -f $fs/usr/share/ventoy/tool/VentoyGTK.glade |
pascal@24146 | 46 rm -f $fs/usr/share/ventoy/tool/distro_gui_type.json |
pascal@24144 | 47 rm -f $fs/usr/share/ventoy/VentoyWeb.sh |
pascal@24143 | 48 rm -rf $fs/usr/share/ventoy/tool/aarch64 |
pascal@24143 | 49 rm -rf $fs/usr/share/ventoy/tool/x86_64 |
pascal@24145 | 50 ln -s i386 $fs/usr/share/ventoy/tool/x86_64 |
pascal@24143 | 51 rm -rf $fs/usr/share/ventoy/tool/mips64el |
pascal@24159 | 52 sed 's|uname -m|echo i386|' -i $fs/usr/share/ventoy/*.sh |
pascal@24144 | 53 sed '/= VentoyWeb.sh =/,/just execute/d' -i $fs/usr/share/ventoy/README |
pascal@24144 | 54 cp $src/INSTALL/tool/i386/V2DServer $fs/usr/share/ventoy/tool/i386/ |
pascal@24144 | 55 chmod +x $fs/usr/share/ventoy/tool/i386/V2DServer |
pascal@24159 | 56 cp $src/INSTALL/tool/i386/Plugson $fs/usr/share/ventoy/tool/i386/ |
pascal@24159 | 57 chmod +x $fs/usr/share/ventoy/tool/i386/Plugson |
pascal@24159 | 58 unxz $fs/usr/share/ventoy/tool/i386/vtoycli.xz |
pascal@24159 | 59 chmod +x $fs/usr/share/ventoy/tool/i386/vtoycli |
pascal@24159 | 60 rm -f $fs/usr/share/ventoy/tool/i386/*xz* |
pascal@24159 | 61 cp $stuff/TazVentoy*.sh $fs/usr/share/ventoy/ |
pascal@24146 | 62 ln -s /tmp/ventoy.log $fs/usr/share/ventoy/log.txt |
pascal@24159 | 63 ln -s /tmp/ventoyPlugson.log $fs/usr/share/ventoy/VentoyPlugson.log |
pascal@24143 | 64 } |