wok view unetbootin/receipt @ rev 22204

linld: 8086 may load zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 11 12:29:56 2019 +0100 (2019-11-11)
parents a78610b2eb47
children 556b14c84917
line source
1 # SliTaz package receipt.
3 PACKAGE="unetbootin"
4 VERSION="675"
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/' distrover*.cpp
23 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' distrolst.cpp
24 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' unetbootin.cpp
25 sed -i '/^RESOURCES/d' unetbootin.pro
26 sed -i '/^RESOURCES/d' unetbootin.pro
27 lupdate unetbootin.pro
28 lrelease unetbootin.pro
29 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc"
30 make
31 upx unetbootin
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 mkdir -p $fs/usr/share/unetbootin
39 mkdir -p $fs/usr/share/applications
41 cp $src/src/unetbootin/unetbootin $fs/usr/bin
42 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
43 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
44 [Desktop Entry]
45 Type=Application
46 Name=Unetbootin
47 Comment=Create bootable Live USB drives.
48 Categories=GTK;System;Filesystem;
49 StartupNotify=false
50 Terminal=false
51 Icon=drive-harddisk-usb
52 Exec=tazbox su unetbootin
53 EOT
54 }