Serial-Studio/msys2/PKGBUILD

37 lines
754 B
Bash

_realname=serial-studio
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=ci
pkgrel=1
pkgdesc="Serial Studio: Multi-purpose serial data visualization & processing program (mingw-w64)"
arch=('any')
url="https://github.com/Serial-Studio/Serial-Studio"
license=('MIT')
depends=("${MINGW_PACKAGE_PREFIX}-qt5")
makedepends=(
"${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-cmake"
)
source=()
sha256sums=()
prepare () {
mkdir -p "${srcdir}"/build
}
build() {
cd "${srcdir}"/build
MSYS2_ARG_CONV_EXCL="PREFIX=" qmake PREFIX="${MINGW_PREFIX}" ../../..
make
}
check() {
"${srcdir}"/build/release/SerialStudio.exe --version
}
package() {
cd "${srcdir}"/build
make INSTALL_ROOT="${pkgdir}" install
}