mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 04:30:56 +02:00
Merge pull request #1241 from thican/net-wireless/qflipper-1.1.2
net-wireless/qflipper: add 1.1.2
This commit is contained in:
commit
be3decd84c
3 changed files with 84 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST qflipper-1.1.1.tar.gz 1047420 BLAKE2B 8c45977f6c0c0e62a115d7effb463df34175a14c115d00d8f56fe29cf21e297031449f666d404d7955890ae547e8305f89c73d1c13176274175a6dd364f823a2 SHA512 32fc527f385ccbeb8728950b8381cc3fda93dcec16c0eabfafdb070330587f8506e4eafbfc16cda577e545586d7d13663efe5901cd1fbf529f64cc1996c3eb5f
|
||||
DIST qflipper-1.1.2.tar.gz 1048924 BLAKE2B 7d336f20936bce9e0d1a79604cb0b66eb40c634d367d7c51facabb4780ddce859e324920ae8504d251468890b2876fef0b399f0ac08f1ca6691ddf76e4d18bae SHA512 d75bc51e570f1a9d39c16186c7969547bb980c7f91c796dd79489e12fbcf7a8a9fa231d00d16936e4cef69530e31982dfcca735616e18961c4706750a15d4dbe
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
diff --git a/qflipper_common.pri b/qflipper_common.pri
|
||||
index e24d6acd..4a99e09d 100644
|
||||
--- a/qflipper_common.pri
|
||||
+++ b/qflipper_common.pri
|
||||
@@ -25,20 +25,11 @@ unix:!macx {
|
||||
error("Unsupported OS or compiler")
|
||||
}
|
||||
|
||||
-GIT_VERSION = $$system("git describe --tags --abbrev=0","lines", HAS_VERSION)
|
||||
-!equals(HAS_VERSION, 0) {
|
||||
- GIT_VERSION = unknown
|
||||
-}
|
||||
+GIT_VERSION = 1.1.2
|
||||
|
||||
-GIT_COMMIT = $$system("git rev-parse --short=8 HEAD","lines", HAS_COMMIT)
|
||||
-!equals(HAS_COMMIT, 0) {
|
||||
- GIT_COMMIT = unknown
|
||||
-}
|
||||
+GIT_COMMIT = 78c52175
|
||||
|
||||
-GIT_TIMESTAMP = $$system("git log -1 --pretty=format:%ct","lines", HAS_TIMESTAMP)
|
||||
-!equals(HAS_TIMESTAMP, 0) {
|
||||
- GIT_TIMESTAMP = 0
|
||||
-}
|
||||
+GIT_TIMESTAMP = 1660050636
|
||||
|
||||
DEFINES += APP_NAME=\\\"$$NAME\\\" \
|
||||
APP_VERSION=\\\"$$GIT_VERSION\\\" \
|
||||
55
net-wireless/qflipper/qflipper-1.1.2.ebuild
Normal file
55
net-wireless/qflipper/qflipper-1.1.2.ebuild
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="Desktop application for updating Flipper Zero firmware via PC"
|
||||
HOMEPAGE="https://update.flipperzero.one/ https://github.com/flipperdevices/qFlipper"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/flipperdevices/qFlipper.git"
|
||||
else
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
SRC_URI="https://github.com/flipperdevices/qFlipper/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/qFlipper-${PV}"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/nanopb-0.4.5[pb-malloc]
|
||||
dev-qt/qtconcurrent:5=
|
||||
dev-qt/qtcore:5=
|
||||
dev-qt/qtdeclarative:5=
|
||||
dev-qt/qtgui:5=
|
||||
dev-qt/qtnetwork:5=
|
||||
dev-qt/qtquickcontrols:5=
|
||||
dev-qt/qtquickcontrols2:5=
|
||||
dev-qt/qtserialport:5=
|
||||
dev-qt/qtwidgets:5=
|
||||
sys-libs/zlib:=
|
||||
virtual/libusb:1
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/unbundle.patch"
|
||||
"${FILESDIR}/${P}_display_version.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
eqmake5 qFlipper.pro PREFIX="${EPREFIX}/usr" -spec linux-g++ CONFIG+=qtquickcompiler DEFINES+=DISABLE_APPLICATION_UPDATES
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake qmake_all # rebuild Makefiles in subdirs
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install
|
||||
}
|
||||
Loading…
Reference in a new issue