From 4d82b35a665b41dc0e9bc2f6d5b7447e5af93573 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Aug 2018 00:37:51 +0800 Subject: [PATCH] sys-boot/unetbootin: revival and bump from ::nicoo --- metadata/categories.conf | 1 + .../unetbootin/unetbootin-661.exheres-0 | 71 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 packages/sys-boot/unetbootin/unetbootin-661.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index 304aa47..7485f63 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -44,6 +44,7 @@ net-p2p net-www sci-mathematics sys-apps +sys-boot sys-process voip www-apps diff --git a/packages/sys-boot/unetbootin/unetbootin-661.exheres-0 b/packages/sys-boot/unetbootin/unetbootin-661.exheres-0 new file mode 100644 index 0000000..3de9225 --- /dev/null +++ b/packages/sys-boot/unetbootin/unetbootin-661.exheres-0 @@ -0,0 +1,71 @@ +# Copyright 2012 Lasse Brun +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user=gkovacs ] freedesktop-desktop gtk-icon-cache qmake [ slot=4 ] + +SUMMARY="GUI for making bootable USB drives" +DESCRIPTION="UNetbootin allows you to create bootable Live USB drives for +most Linux distributions without burning a CD. You can either let +UNetbootin download one of the many distributions supported out-of-the-box +for you, or supply your own Linux .iso file if you've already downloaded +one or your preferred distribution isn't on the list." + +UNETBOOTIN_LINGUAS="am ar ast be bg bn ca cs da de el eo es et eu fi fo fr + gl he hr hu id it ja lt lv ml ms nan nb nl nn pl pt pt_BR ro ru sk sl + sr sv sw tr uk ur vi zh_CN zh_TW" + +MYOPTIONS="linguas: ( ${UNETBOOTIN_LINGUAS} )" +SLOT="0" +LICENCES="GPL-2" +PLATFORMS="~amd64" +DEPENDENCIES=" + build+run: + x11-libs/qt:4 + + recommendation: + base/syslinux [[ + description = [ Required for FAT32 and EXT2 formatted USB drive install mode ] + ]] + sys-fs/mtools [[ + description = [ Required for Arch Linux install mode which depends upon mlabel ] + ]] +" + +WORK="${WORK}/src/${PN}" +EQMAKE_SOURCES=( ${WORK}/${PN}.pro ) +QMAKE4_SRC_CONFIGURE_PARAMS=( + "DEFINES += NOSTATIC" + "RESOURCES -= unetbootin.qrc" +) + +src_prepare() { + # Configure http://sourceforge.net/apps/trac/unetbootin/wiki/compile + edo sed -i '/^RESOURCES/d' unetbootin.pro + edo lupdate unetbootin.pro + edo lrelease unetbootin.pro +} + +src_install() { + local size lang + + # Install the binary + dobin ${PN} + + # Install the desktop shortcut + insinto /usr/share/applications + doins ${PN}.desktop + + # Install icons + for size in 14 16 22 24 32 48 64 128 256 ; do + insinto /usr/share/icons/hicolor/${size}x${size}/apps + newins "${WORK}"/${PN}_${size}.png ${PN}.png + done + + # Install linguas + insinto /usr/share/${PN} + for lang in ${UNETBOOTIN_LINGUAS} ; do + option "linguas:${lang}" && doins "${WORK}"/${PN}_${lang}.qm + done +} +