# SliTaz package receipt. PACKAGE="unetbootin" VERSION="677" CATEGORY="system-tools" SHORT_DESC="Create bootable Live USB drives for a variety of Linux distributions." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://unetbootin.github.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz" SUGGESTED="bash gparted xz" DEPENDS="libQtCore libQtGui libQtNetwork mtools p7zip-full syslinux" BUILD_DEPENDS="qmake Qt4-dev upx" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src/src/unetbootin sed -i 's/Cooking/Rolling/' \ distrover*.cpp sed -i 's/^\(.*\)"gpxe"\(.*\)$/&\n\1"ipxe"\2/' \ distrolst.cpp sed -i 's/"rootfs.gz"/& << "rootfs1.gz" << "rootfs2.gz" << "rootfs3.gz" << "rootfs4.gz"/' \ unetbootin.cpp sed -i '/^RESOURCES/d' \ unetbootin.pro sed -i '/^RESOURCES/d' \ unetbootin.pro lupdate unetbootin.pro lrelease unetbootin.pro qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" && make && upx unetbootin } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin mkdir -p $fs/usr/share/unetbootin mkdir -p $fs/usr/share/applications cp $src/src/unetbootin/unetbootin $fs/usr/bin cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin cat > $fs/usr/share/applications/$PACKAGE.desktop <