commit: 6b232fa0030e77854bd361f0c10bbd9a7c32546b Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org> AuthorDate: Wed May 14 13:15:15 2025 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Wed May 14 13:19:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b232fa0
app-mobilephone/heimdall: add 2.1.1 Closes: https://bugs.gentoo.org/951053 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> app-mobilephone/heimdall/Manifest | 1 + app-mobilephone/heimdall/heimdall-2.1.1.ebuild | 60 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/app-mobilephone/heimdall/Manifest b/app-mobilephone/heimdall/Manifest index 09b98ecf27d1..627e1fbd802f 100644 --- a/app-mobilephone/heimdall/Manifest +++ b/app-mobilephone/heimdall/Manifest @@ -1 +1,2 @@ DIST heimdall-2.1.0.tar.gz 69505 BLAKE2B b35b53d705cc3e6db4041e5941aefaf86217ea920fd26ed9a861eb5b8f94a8f3d5babbdfcf430a85a01e6b5130e381d95720062d1955abf63f83db1ba3e87c5c SHA512 75c58cdfaa183e1a8a73127875f716cf168da3a109eefafc7bf1fe9573b9d716da23ff15d0df93474568a678a1b38e71611c745b688c3bc024e70672d921fdd6 +DIST heimdall-2.1.1.tar.gz 68067 BLAKE2B be3fff2b32b1c710a079ebc9a5eca00b30eab881ca02f55176c3f32af50801ec7e02e79a06efb1877782497bc62d28129a413cdfc39f4ea0646556ee6b8be6a7 SHA512 a388b8f3fbf75b46aa3a1b61016c08cfc1c8d4ad6a68e690ddce9424cc4df22500922604f5891f471dddae16034a30e610432fa5d4023fd398bf7a798215a5eb diff --git a/app-mobilephone/heimdall/heimdall-2.1.1.ebuild b/app-mobilephone/heimdall/heimdall-2.1.1.ebuild new file mode 100644 index 000000000000..f8da9e2ac0dd --- /dev/null +++ b/app-mobilephone/heimdall/heimdall-2.1.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake udev + +DESCRIPTION="Tool suite used to flash firmware onto Samsung devices" +HOMEPAGE=" + https://git.sr.ht/~grimler/Heimdall + https://glassechidna.com.au/heimdall/ + https://github.com/Benjamin-Dobell/Heimdall +" + +if [[ ${PV} != 9999 ]]; then + SRC_URI="https://git.sr.ht/~grimler/Heimdall/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/Heimdall-v${PV}" + + KEYWORDS="~amd64 ~arm64" +else + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~grimler/Heimdall" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="gui" + +RDEPEND=" + sys-libs/zlib + virtual/libusb:1= + gui? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + )" + +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DDISABLE_FRONTEND=$(usex !gui) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + udev_dorules heimdall/60-heimdall.rules +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}
