diff options
author | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-03-26 03:32:42 +0400 |
---|---|---|
committer | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-03-26 03:32:42 +0400 |
commit | aa76d8ee0c8962c57241a71c4e2d1325cf36bea5 (patch) | |
tree | d9991c8cd82261de69c3053f5b26fafbdce7865a /sys-boot | |
parent | sys-boot/ubuntu-desktop-amd64-iso-download: new package (diff) | |
download | guru-aa76d8ee0c8962c57241a71c4e2d1325cf36bea5.tar.gz guru-aa76d8ee0c8962c57241a71c4e2d1325cf36bea5.tar.bz2 guru-aa76d8ee0c8962c57241a71c4e2d1325cf36bea5.zip |
sys-boot/mkusb: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/mkusb/Manifest | 7 | ||||
-rw-r--r-- | sys-boot/mkusb/metadata.xml | 13 | ||||
-rw-r--r-- | sys-boot/mkusb/mkusb-23.2.0.ebuild | 73 |
3 files changed, 93 insertions, 0 deletions
diff --git a/sys-boot/mkusb/Manifest b/sys-boot/mkusb/Manifest new file mode 100644 index 000000000..f6c1b6529 --- /dev/null +++ b/sys-boot/mkusb/Manifest @@ -0,0 +1,7 @@ +DIST mkusb-23.2.0-all.deb 57056 BLAKE2B 898c40c5eccc7c2d8f13d778cb5990504d48ba2a54b069147c721bd6ab3348395beb2be1f40a629e551dc5b18b627535f6f629b11cfcc7401dd7e0036e2b53d8 SHA512 e2a6333778f555be81e7de5ff260bc234a4f7384e2f1f8ead5c8c03746063a709b23964a60c65aa473a8e61159649558a7104d589386c2775dea473c62fada9f +DIST mkusb-23.2.0-common.deb 13520112 BLAKE2B 73acc8b7901225e630720efdcd29df30a6524c6c5b8e7e871be7dce14b96f0238c00ed58243dcf54c6e428c0c33fa56022779e8f0c551931fc811aabe225ad0d SHA512 55ee9894ad7fc75087230dfb7fec69c4d9734433bc1097ac58f52f03f4f780c71c4a6e9dc4045d1cb2da232d6532134ed1f33c2350014ed8f8d0a08d99397f00 +DIST mkusb-23.2.0-efi.deb 11566428 BLAKE2B 89d62818e3075020c5d4f806249c95e99d9643b4016d1b19af1ed6b3d2209bac1e322ba386cfb4f37eb9ab2fe9779bfdb901897e1c4159d1efdfb5efe49000f2 SHA512 7620378981ea7d008aa476840a325eca2bfbce0a362a82151a29619e2c151080e0f727106892986da04f21fca16ba0e0bfbb94d8be1d0ee69cd93bf170f3e93e +DIST mkusb-23.2.0-gui.deb 18164 BLAKE2B bc0ac05cc203a9abc8053f49a5d2283624cd9b03bd0dafda22b194cf6cd454e05eb7355abec954f01b463f885e64d2891834510cea2aac47507c5cbb4c8424ae SHA512 8f003506150685fecfd5e75fbc65df2dcde591cd22cdae102d10407c982f6b013955dbefd1ff7f7d66f7d6848ef6949f28ad69f7ae90b7cb9cc53d00c94b3c72 +DIST mkusb-23.2.0-nox.deb 30656 BLAKE2B c376bf6c2ad88e62ed49e6f89599fcd878453a91113f5ddd530623fb994319b01c5df00597d33be56757cd0c04ee6ae649553f58c7a6795705a022194c618d70 SHA512 6c132cfcd6835fc17ae34f00c02d6cb6e9ae1ce18a64a13696436c185e0835c3b1773bbb8b0dd5b0d5c66c04dafdf5ae3d9eafa233ec282fd73b2558706ac538 +DIST mkusb-23.2.0-plug.deb 35360 BLAKE2B 1b7f12aeb6b17ff0fdebc450c5d11bc7aea86c4bcdb753206505a750653018e451dac44da8a413cea6d57e7b3d57d961652aca58c590797a33da4ba2198d3e5c SHA512 61a36f5098c19218b15c14c1c3a8bd2c8f026a63227841701422984354b899d5e6735fa0d486e93339ac016743cb47a40beae6f0130af6b0016c00ac202b8c01 +DIST mkusb-23.2.0.deb 65376 BLAKE2B aa8028e0d330b63a83b9101caf8ae1adf0f12508351f9b97db436658d9ea8b93adf937e83300af320fb3c17a472b740509ee268868423c766fcad4d75756de83 SHA512 092809659654392af055414f8ccdcc4dbe2284c0d2e043df66988c89fefc13fa0aa0e0c7b258600d95e1496fba5686f246cadc1ac90154ce24362b33c5c6eccd diff --git a/sys-boot/mkusb/metadata.xml b/sys-boot/mkusb/metadata.xml new file mode 100644 index 000000000..a3a76b491 --- /dev/null +++ b/sys-boot/mkusb/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Vitaly Zdanevich</name> + <email>zdanevich.vitaly@ya.ru</email> + </maintainer> + <upstream> + <bugs-to>https://bugs.launchpad.net/mkusb</bugs-to> + <doc>https://help.ubuntu.com/community/mkusb</doc> + <remote-id type="launchpad">mkusb</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-boot/mkusb/mkusb-23.2.0.ebuild b/sys-boot/mkusb/mkusb-23.2.0.ebuild new file mode 100644 index 000000000..d13c1a2ff --- /dev/null +++ b/sys-boot/mkusb/mkusb-23.2.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker xdg-utils + +DESCRIPTION="CLI and GUI for creating bootable live USB, with optional persistent storage" +HOMEPAGE="https://help.ubuntu.com/community/mkusb" +SRC_URI=" + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/$PN-common_$PV-1ubuntu1_all.deb -> $P-common.deb + https://launchpad.net/~$PN/+archive/ubuntu/unstable/+files/dus_$PV-1ubuntu1_all.deb -> $P.deb + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/guidus_$PV-1ubuntu1_all.deb -> $P-gui.deb + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/${PN}_$PV-1ubuntu1_all.deb -> $P-all.deb + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/$PN-plug_$PV-1ubuntu1_all.deb -> $P-plug.deb + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/$PN-nox_$PV-1ubuntu1_all.deb -> $P-nox.deb + https://launchpad.net/~$PN/+archive/ubuntu/ppa/+files/usb-pack-efi_$PV-1ubuntu1_all.deb -> $P-efi.deb +" + +S="${WORKDIR}" + +SLOT="0" + +LICENSE="GPL-3" +KEYWORDS="~amd64" + +RESTRICT="strip" +QA_PREBUILT="*" +# REQUIRES_EXCLUDE="libcef.so" # Already inside + +RDEPEND=" + app-admin/sudo + gnome-extra/zenity + sys-apps/gptfdisk + sys-apps/pv + sys-fs/ntfs3g +" +# About sys-fs/ntfs3g see my issue to make this dep optionsl https://bugs.launchpad.net/mkusb/+bug/2058962 + +src_unpack() { + unpack_deb "$DISTDIR/$P-common.deb" + unpack_deb "$DISTDIR/$P.deb" + unpack_deb "$DISTDIR/$P-gui.deb" + unpack_deb "$DISTDIR/$P-all.deb" + unpack_deb "$DISTDIR/$P-plug.deb" +} + +src_install() { + cp -R "${S}"/* "${D}" || die "Installing binary files failed" + + # Extract documentation files + # To solve + # "Please fix the ebuild not to install compressed files (manpages, documentation) when automatic compression is used + cd "$ED" + find usr/share/ -name *.gz -exec gzip -d {} \; + + # Against + # "QA Notice: The ebuild is installing to one or more unexpected paths:" + from="usr/share/doc" + to="usr/share/doc/$PF/" + mkdir -p $to + mv "$from/dus/" $to || die + mv "$from/guidus/" $to || die + mv "$from/mkusb/" $to || die + mv "$from/mkusb-common/" $to || die + mv "$from/mkusb-plug/" $to || die +} + +pkg_postinst() { + xdg_icon_cache_update +} + +# QA Notice about non-escaped $ - I created issue https://bugs.launchpad.net/mkusb/+bug/2059036 |