wok-current view unetbootin/receipt @ rev 20066
busybox: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 23 14:24:16 2017 +0200 (2017-09-23) |
parents | baa9bcac7edd |
children | a78610b2eb47 |
line source
1 # SliTaz package receipt.
3 PACKAGE="unetbootin"
4 VERSION="625"
5 CATEGORY="system-tools"
6 SHORT_DESC="Allows you to create bootable Live USB drives."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://unetbootin.github.io/"
11 WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz"
13 DEPENDS="syslinux mtools p7zip-full libQtCore libQtGui libQtNetwork"
14 BUILD_DEPENDS="qmake Qt4-dev upx"
15 SUGGESTED="bash gparted xz"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src/unetbootin
21 sed -i 's/Cooking/Rolling/' distrover*.cpp
22 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' distrolst.cpp
23 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' unetbootin.cpp
24 sed -i '/^RESOURCES/d' unetbootin.pro
25 sed -i '/^RESOURCES/d' unetbootin.pro
26 lupdate unetbootin.pro
27 lrelease unetbootin.pro
28 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc"
29 make
30 upx unetbootin
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/share/unetbootin $fs/usr/share/applications
37 cp $src/src/unetbootin/unetbootin $fs/usr/bin
38 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
39 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
40 [Desktop Entry]
41 Type=Application
42 Name=Unetbootin
43 Comment=Unetbootin allows you to create bootable Live USB drives.
44 Categories=GTK;System;Filesystem;
45 StartupNotify=false
46 Terminal=false
47 Icon=drive-harddisk-usb
48 Exec=tazbox su unetbootin
49 EOT
50 }