wok view ventoy/receipt @ rev 25660
ntfsprogs: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 17 11:09:57 2024 +0000 (9 months ago) |
parents | 9bbac86a37f7 |
children |
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|^build_func |#&|;s|#\(build_func .*i386\)|\1|;s|-l pthread|& -l rt|' \
29 LinuxGUI/build.sh Plugson/build.sh
30 cd LinuxGUI && sh build.sh
31 cd ../Plugson && sh build.sh
32 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
33 wget --no-check-certificate -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES \
34 "https://github.com/ventoy/Ventoy/releases/download/v$VERSION/ventoy-$VERSION-linux.tar.gz"
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/applications
41 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES -C $fs/usr/share/
42 mv $fs/usr/share/ventoy-$VERSION $fs/usr/share/ventoy
43 rm -f $fs/usr/share/ventoy/VentoyGUI* $fs/usr/share/ventoy/*.exe
44 rm -f $fs/usr/share/ventoy/tool/i386/*.qt? $fs/usr/share/ventoy/tool/i386/*.gtk?
45 rm -f $fs/usr/share/ventoy/tool/i386/V2DServer*
46 rm -f $fs/usr/share/ventoy/tool/VentoyGTK.glade
47 rm -f $fs/usr/share/ventoy/tool/distro_gui_type.json
48 rm -f $fs/usr/share/ventoy/VentoyWeb.sh
49 rm -rf $fs/usr/share/ventoy/tool/aarch64
50 rm -rf $fs/usr/share/ventoy/tool/x86_64
51 ln -s i386 $fs/usr/share/ventoy/tool/x86_64
52 rm -rf $fs/usr/share/ventoy/tool/mips64el
53 sed 's|uname -m|echo i386|' -i $fs/usr/share/ventoy/*.sh
54 sed '/= VentoyWeb.sh =/,/just execute/d' -i $fs/usr/share/ventoy/README
55 cp $src/INSTALL/tool/i386/V2DServer $fs/usr/share/ventoy/tool/i386/
56 chmod +x $fs/usr/share/ventoy/tool/i386/V2DServer
57 cp $src/INSTALL/tool/i386/Plugson $fs/usr/share/ventoy/tool/i386/
58 chmod +x $fs/usr/share/ventoy/tool/i386/Plugson
59 unxz $fs/usr/share/ventoy/tool/i386/vtoycli.xz
60 chmod +x $fs/usr/share/ventoy/tool/i386/vtoycli
61 rm -f $fs/usr/share/ventoy/tool/i386/*xz*
62 cp $stuff/TazVentoy*.sh $fs/usr/share/ventoy/
63 ln -s /tmp/ventoy.log $fs/usr/share/ventoy/log.txt
64 ln -s /tmp/ventoyPlugson.log $fs/usr/share/ventoy/VentoyPlugson.log
65 }