wok view unetbootin/receipt @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (2 months ago)
parents 5ea0ce1cecc0
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 # 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 cd $src/src/unetbootin
29 sed -i 's/Cooking/Rolling/' \
30 distrover*.cpp
31 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \
32 distrolst.cpp
33 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \
34 unetbootin.cpp
35 sed -i '/^RESOURCES/d' \
36 unetbootin.pro
37 sed -i '/^RESOURCES/d' \
38 unetbootin.pro
39 lupdate unetbootin.pro
40 lrelease unetbootin.pro
41 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" &&
42 make &&
43 upx unetbootin
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/bin
50 mkdir -p $fs/usr/share/unetbootin
51 mkdir -p $fs/usr/share/applications
53 cp $src/src/unetbootin/unetbootin $fs/usr/bin
54 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
55 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
56 [Desktop Entry]
57 Type=Application
58 Name=Unetbootin
59 Comment=Create bootable Live USB drives.
60 Categories=GTK;System;Filesystem;
61 StartupNotify=false
62 Terminal=false
63 Icon=drive-harddisk-usb
64 Exec=tazbox su unetbootin
65 EOT
66 }