wok-6.x annotate unetbootin/receipt @ rev 22807
updated get-bitcoin (1.00 -> 1.01)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 29 07:32:34 2020 +0100 (2020-01-29) |
parents | a78610b2eb47 |
children | 556b14c84917 |
rev | line source |
---|---|
hackdorte@19155 | 1 # SliTaz package receipt. |
hackdorte@19155 | 2 |
hackdorte@19155 | 3 PACKAGE="unetbootin" |
Hans-G?nter@22075 | 4 VERSION="675" |
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 |
pascal@19577 | 22 sed -i 's/Cooking/Rolling/' distrover*.cpp |
pascal@19578 | 23 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' distrolst.cpp |
pascal@19577 | 24 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' unetbootin.cpp |
pascal@19577 | 25 sed -i '/^RESOURCES/d' unetbootin.pro |
pascal@19576 | 26 sed -i '/^RESOURCES/d' unetbootin.pro |
pascal@19576 | 27 lupdate unetbootin.pro |
pascal@19576 | 28 lrelease unetbootin.pro |
pascal@19576 | 29 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" |
pascal@19576 | 30 make |
pascal@19577 | 31 upx unetbootin |
pascal@19576 | 32 } |
hackdorte@19155 | 33 |
pascal@19576 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19576 | 35 genpkg_rules() |
pascal@19576 | 36 { |
Hans-G?nter@22075 | 37 mkdir -p $fs/usr/bin |
Hans-G?nter@22075 | 38 mkdir -p $fs/usr/share/unetbootin |
Hans-G?nter@22075 | 39 mkdir -p $fs/usr/share/applications |
Hans-G?nter@22075 | 40 |
Hans-G?nter@22075 | 41 cp $src/src/unetbootin/unetbootin $fs/usr/bin |
Hans-G?nter@22075 | 42 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin |
pascal@19576 | 43 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT |
hackdorte@19155 | 44 [Desktop Entry] |
hackdorte@19155 | 45 Type=Application |
hackdorte@19155 | 46 Name=Unetbootin |
Hans-G?nter@22075 | 47 Comment=Create bootable Live USB drives. |
hackdorte@19155 | 48 Categories=GTK;System;Filesystem; |
hackdorte@19155 | 49 StartupNotify=false |
hackdorte@19155 | 50 Terminal=false |
hackdorte@19155 | 51 Icon=drive-harddisk-usb |
pascal@19579 | 52 Exec=tazbox su unetbootin |
hackdorte@19155 | 53 EOT |
hackdorte@19155 | 54 } |