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

updated unetbootin (675 -> 677)
author Hans-G?nter Theisgen
date Wed Apr 29 07:34:27 2020 +0100 (2020-04-29)
parents ad58a2dfd4b8
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src/unetbootin
22 sed -i 's/Cooking/Rolling/' \
23 distrover*.cpp
24 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \
25 distrolst.cpp
26 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \
27 unetbootin.cpp
28 sed -i '/^RESOURCES/d' \
29 unetbootin.pro
30 sed -i '/^RESOURCES/d' \
31 unetbootin.pro
32 lupdate unetbootin.pro
33 lrelease unetbootin.pro
34 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" &&
35 make &&
36 upx unetbootin
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 mkdir -p $fs/usr/share/unetbootin
44 mkdir -p $fs/usr/share/applications
46 cp $src/src/unetbootin/unetbootin $fs/usr/bin
47 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
48 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
49 [Desktop Entry]
50 Type=Application
51 Name=Unetbootin
52 Comment=Create bootable Live USB drives.
53 Categories=GTK;System;Filesystem;
54 StartupNotify=false
55 Terminal=false
56 Icon=drive-harddisk-usb
57 Exec=tazbox su unetbootin
58 EOT
59 }