2022-05-04 07:14:22 +02:00
|
|
|
# Template file for 'qflipper'
|
|
|
|
pkgname=qflipper
|
|
|
|
version=1.1.0
|
|
|
|
revision=1
|
2022-06-19 23:02:28 +02:00
|
|
|
_nanopb_version=0.4.5
|
2022-05-04 07:14:22 +02:00
|
|
|
wrksrc="qFlipper-${version}"
|
|
|
|
build_style=qmake
|
2022-06-19 23:02:28 +02:00
|
|
|
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
|
2022-05-04 07:14:22 +02:00
|
|
|
makedepends="qt5-devel qt5-serialport-devel libusb-devel qt5-quickcontrols2-devel qt5-svg-devel qt5-declarative-devel"
|
|
|
|
depends="qt5-graphicaleffects qt5-quickcontrols"
|
|
|
|
short_desc="Desktop application for updating Flipper Zero firmware via PC"
|
|
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
|
|
license="GPL-3.0-only"
|
|
|
|
homepage="https://flipperzero.one"
|
|
|
|
distfiles="https://github.com/flipperdevices/qFlipper/archive/refs/tags/${version}.tar.gz
|
2022-06-19 23:02:28 +02:00
|
|
|
https://github.com/nanopb/nanopb/archive/refs/tags/${_nanopb_version}.tar.gz"
|
2022-05-04 07:14:22 +02:00
|
|
|
checksum="ccafe9b7e4f6c0cabe6e030dae7b0672062bdee048f461aa3429cde5371ef6c2
|
|
|
|
7d57ebcf26885c9758f95f26bf06d366744599f9a2ff4de477a348eb13e7a7d8"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
rmdir 3rdparty/nanopb
|
|
|
|
ln -s ../../nanopb-0.4.5 3rdparty/nanopb
|
|
|
|
assemble_date="$(date -d "$(stat --printf=%y qflipper_common.pri)" +%s)"
|
2022-06-19 23:02:28 +02:00
|
|
|
vsed -i qflipper_common.pri \
|
2022-05-04 07:14:22 +02:00
|
|
|
-e "s/\$\$GIT_VERSION/${version}/" \
|
|
|
|
-e "s/\$\$GIT_COMMIT/unavailable/" \
|
|
|
|
-e "s/\$\$GIT_TIMESTAMP/${assemble_date}/" \
|
|
|
|
-e "/^GIT_/{N;N;N;N;d}"
|
|
|
|
}
|