wok view ventoy/receipt @ rev 25005

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