32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
# Template file for 'qflipper'
|
|
pkgname=qflipper
|
|
version=1.2.0
|
|
revision=1
|
|
_nanopb_version=0.4.6
|
|
create_wrksrc=yes
|
|
build_style=qmake
|
|
configure_args="CONFIG+=qtquickcompiler DEFINES+=DISABLE_APPLICATION_UPDATES"
|
|
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
|
|
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
|
|
https://github.com/nanopb/nanopb/archive/refs/tags/${_nanopb_version}.tar.gz"
|
|
checksum="d830c9f442e833957431bdd42f5711cb24d64e0d83976e35987cccbe046a3c8c
|
|
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}"
|
|
}
|