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