wok-6.x annotate unetbootin/receipt @ rev 25414

updated wordpress (5.4.1 -> 6.0.1)
author Hans-G?nter Theisgen
date Thu Aug 04 08:44:13 2022 +0100 (2022-08-04)
parents 556b14c84917
children
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
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
hackdorte@19155 24 # Rules to configure and make the package.
hackdorte@19155 25 compile_rules()
hackdorte@19155 26 {
pascal@19576 27 cd $src/src/unetbootin
Hans-G?nter@23716 28 sed -i 's/Cooking/Rolling/' \
Hans-G?nter@23716 29 distrover*.cpp
Hans-G?nter@23716 30 sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \
Hans-G?nter@23716 31 distrolst.cpp
Hans-G?nter@23716 32 sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \
Hans-G?nter@23716 33 unetbootin.cpp
Hans-G?nter@23716 34 sed -i '/^RESOURCES/d' \
Hans-G?nter@23716 35 unetbootin.pro
Hans-G?nter@23716 36 sed -i '/^RESOURCES/d' \
Hans-G?nter@23716 37 unetbootin.pro
pascal@19576 38 lupdate unetbootin.pro
pascal@19576 39 lrelease unetbootin.pro
Hans-G?nter@23716 40 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" &&
Hans-G?nter@23716 41 make &&
pascal@19577 42 upx unetbootin
pascal@19576 43 }
hackdorte@19155 44
pascal@19576 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19576 46 genpkg_rules()
pascal@19576 47 {
Hans-G?nter@22075 48 mkdir -p $fs/usr/bin
Hans-G?nter@22075 49 mkdir -p $fs/usr/share/unetbootin
Hans-G?nter@22075 50 mkdir -p $fs/usr/share/applications
Hans-G?nter@22075 51
Hans-G?nter@22075 52 cp $src/src/unetbootin/unetbootin $fs/usr/bin
Hans-G?nter@22075 53 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin
pascal@19576 54 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
hackdorte@19155 55 [Desktop Entry]
hackdorte@19155 56 Type=Application
hackdorte@19155 57 Name=Unetbootin
Hans-G?nter@22075 58 Comment=Create bootable Live USB drives.
hackdorte@19155 59 Categories=GTK;System;Filesystem;
hackdorte@19155 60 StartupNotify=false
hackdorte@19155 61 Terminal=false
hackdorte@19155 62 Icon=drive-harddisk-usb
pascal@19579 63 Exec=tazbox su unetbootin
hackdorte@19155 64 EOT
hackdorte@19155 65 }