wok-6.x view unetbootin/receipt @ rev 25414

updated wordpress (5.4.1 -> 6.0.1)
author Hans-G?nter Theisgen
date Thu Aug 04 08:44:13 2022 +0100 (2022-08-04)
parents 556b14c84917
children
line source
1 # SliTaz package receipt.
3 PACKAGE="unetbootin"
4 VERSION="677"
5 CATEGORY="system-tools"
6 SHORT_DESC="Create bootable Live USB drives for a variety of Linux distributions."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://unetbootin.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz"
14 SUGGESTED="bash gparted xz"
15 DEPENDS="libQtCore libQtGui libQtNetwork mtools p7zip-full syslinux"
16 BUILD_DEPENDS="qmake Qt4-dev upx"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/src/unetbootin
28 sed -i 's/Cooking/Rolling/' \
29 distrover*.cpp
30 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \
31 distrolst.cpp
32 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \
33 unetbootin.cpp
34 sed -i '/^RESOURCES/d' \
35 unetbootin.pro
36 sed -i '/^RESOURCES/d' \
37 unetbootin.pro
38 lupdate unetbootin.pro
39 lrelease unetbootin.pro
40 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" &&
41 make &&
42 upx unetbootin
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/bin
49 mkdir -p $fs/usr/share/unetbootin
50 mkdir -p $fs/usr/share/applications
52 cp $src/src/unetbootin/unetbootin $fs/usr/bin
53 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
54 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
55 [Desktop Entry]
56 Type=Application
57 Name=Unetbootin
58 Comment=Create bootable Live USB drives.
59 Categories=GTK;System;Filesystem;
60 StartupNotify=false
61 Terminal=false
62 Icon=drive-harddisk-usb
63 Exec=tazbox su unetbootin
64 EOT
65 }