wok-current annotate unetbootin/receipt @ rev 23805
xine-lib: update suggested
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 24 07:34:28 2020 +0000 (2020-05-24) |
parents | ad58a2dfd4b8 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
hackdorte@19155 | 1 # SliTaz package receipt. |
hackdorte@19155 | 2 |
hackdorte@19155 | 3 PACKAGE="unetbootin" |
Hans-G?nter@23716 | 4 VERSION="677" |
hackdorte@19155 | 5 CATEGORY="system-tools" |
Hans-G?nter@22075 | 6 SHORT_DESC="Create bootable Live USB drives for a variety of Linux distributions." |
pascal@19576 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19576 | 8 LICENSE="GPL2" |
Hans-G?nter@22075 | 9 WEB_SITE="https://unetbootin.github.io/" |
Hans-G?nter@22075 | 10 |
pascal@19576 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19576 | 12 WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz" |
hackdorte@19155 | 13 |
Hans-G?nter@22075 | 14 SUGGESTED="bash gparted xz" |
Hans-G?nter@22075 | 15 DEPENDS="libQtCore libQtGui libQtNetwork mtools p7zip-full syslinux" |
pascal@19577 | 16 BUILD_DEPENDS="qmake Qt4-dev upx" |
hackdorte@19155 | 17 |
hackdorte@19155 | 18 # Rules to configure and make the package. |
hackdorte@19155 | 19 compile_rules() |
hackdorte@19155 | 20 { |
pascal@19576 | 21 cd $src/src/unetbootin |
Hans-G?nter@23716 | 22 sed -i 's/Cooking/Rolling/' \ |
Hans-G?nter@23716 | 23 distrover*.cpp |
Hans-G?nter@23716 | 24 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \ |
Hans-G?nter@23716 | 25 distrolst.cpp |
Hans-G?nter@23716 | 26 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \ |
Hans-G?nter@23716 | 27 unetbootin.cpp |
Hans-G?nter@23716 | 28 sed -i '/^RESOURCES/d' \ |
Hans-G?nter@23716 | 29 unetbootin.pro |
Hans-G?nter@23716 | 30 sed -i '/^RESOURCES/d' \ |
Hans-G?nter@23716 | 31 unetbootin.pro |
pascal@19576 | 32 lupdate unetbootin.pro |
pascal@19576 | 33 lrelease unetbootin.pro |
Hans-G?nter@23716 | 34 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" && |
Hans-G?nter@23716 | 35 make && |
pascal@19577 | 36 upx unetbootin |
pascal@19576 | 37 } |
hackdorte@19155 | 38 |
pascal@19576 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19576 | 40 genpkg_rules() |
pascal@19576 | 41 { |
Hans-G?nter@22075 | 42 mkdir -p $fs/usr/bin |
Hans-G?nter@22075 | 43 mkdir -p $fs/usr/share/unetbootin |
Hans-G?nter@22075 | 44 mkdir -p $fs/usr/share/applications |
Hans-G?nter@22075 | 45 |
Hans-G?nter@22075 | 46 cp $src/src/unetbootin/unetbootin $fs/usr/bin |
Hans-G?nter@22075 | 47 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin |
pascal@19576 | 48 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT |
hackdorte@19155 | 49 [Desktop Entry] |
hackdorte@19155 | 50 Type=Application |
hackdorte@19155 | 51 Name=Unetbootin |
Hans-G?nter@22075 | 52 Comment=Create bootable Live USB drives. |
hackdorte@19155 | 53 Categories=GTK;System;Filesystem; |
hackdorte@19155 | 54 StartupNotify=false |
hackdorte@19155 | 55 Terminal=false |
hackdorte@19155 | 56 Icon=drive-harddisk-usb |
pascal@19579 | 57 Exec=tazbox su unetbootin |
hackdorte@19155 | 58 EOT |
hackdorte@19155 | 59 } |