blob: e351fe6b5ec11d17e6171f6d8f582edb84b25506 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#
# PKGBUILD for mcuviewer
#
# Maintainer: uffe _.at._ uffe _.dot._ org
#
_pkg_name="MCUViewer"
pkgname="mcuviewer"
pkgver=1.0.1
pkgrel=1
pkgdesc="Real-time embedded variable & trace viewer "
pkg_name_ver="${_pkg_name}-${pkgver}"
url="https://github.com/klonyyy/MCUViewer"
arch=("i686" "x86_64")
license=("GPL-3.0-only")
makedepends=("cmake" "spdlog")
depends=("libusb" "glfw" "gtk3" "glib2")
optdepends=()
source=(${pkgname}.src.tgz::${url}/archive/refs/tags/v${pkgver}.tar.gz)
#conflicts=("minipro")
provides=("mcuviewer")
sha256sums=('c76486ba3ff6c650b6f8a384a21396c3c1c658dc187fa607d6473b9761447fdb')
prepare()
{
cd "${srcdir}/${pkg_name_ver}"
}
build()
{
cd "${srcdir}/${pkg_name_ver}"
# HACK
if ! test -f .git/HEAD; then
mkdir .git
touch .git/HEAD
echo 'static constexpr const char* GIT_HASH = "stable";' > src/gitversion.hpp
fi
# option -Wno-dev to suppress warning that devels need to fix in Cmakefiles
cmake -S . -B _build.out -DCMAKE_INSTALL_PREFIX="/usr" -Wno-dev
cmake --build _build.out
}
package()
{
cd "${srcdir}/${pkg_name_ver}"
#DESTDIR="${pkgdir}" cmake --prefix="usr" --install _build.out
DESTDIR="${pkgdir}" cmake --install _build.out
}
# vim: ts=2 sw=2 et:
#
# EOF
#
|