-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
31 lines (30 loc) · 1.24 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Template file for 'qflipper'
pkgname=qflipper
version=1.3.3
revision=1
_nanopb_version=0.4.6
build_style=qmake
configure_args="CONFIG+=qtquickcompiler DEFINES+=DISABLE_APPLICATION_UPDATES"
hostmakedepends="pkg-config qt6-base qt6-tools"
makedepends="qt6-serialport-devel qt6-declarative-devel qt6-wayland-devel
qt6-qt5compat-devel qt6-svg-devel libusb-devel"
depends="qt6-plugin-tls-openssl qt6-svg"
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
https://github.com/nanopb/nanopb/archive/refs/tags/${_nanopb_version}.tar.gz"
checksum="a6b6ec5753343d704811fdcc421a5ea2ea665e0f4731d8fab3701cf588323d8d
caa97d55fb9c98b4cfa0b069acd9657f706e9629af0baeaefcae0a0e8c4a64d2"
post_extract() {
mv qFlipper-$version/* .
rmdir 3rdparty/nanopb
mv nanopb-${_nanopb_version} 3rdparty/nanopb
assemble_date="$(date -d "$(stat --printf=%y qflipper_common.pri)" +%s)"
vsed -i qflipper_common.pri \
-e "s/\$\$GIT_VERSION/${version}/" \
-e "s/\$\$GIT_COMMIT/unavailable/" \
-e "s/\$\$GIT_TIMESTAMP/${assemble_date}/" \
-e "/^GIT_/{N;N;N;N;d}"
}