blob: 42a0ff54958bdfc4289ab622e84ac4aacb4db673 (
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
|
pkgname=scopehal-apps-git
pkgver=0.0.e0dd8c5a
pkgrel=1
pkgdesc="glscopeclient and other client applications for libscopehal"
arch=('x86_64')
url="https://github.com/ngscopeclient/scopehal-apps"
license=('BSD-3-Clause')
groups=()
depends=('gtkmm3' 'libsigc++' 'ffts-git' 'openmp' 'glfw' 'yaml-cpp' 'glew' 'libsigc++-3.0' 'hidapi>=0.13.1')
# could be also built against 'libsigc++' (2.x version) instead of 'libsigc++-3.0', what should be our target?
optdepends=('libvulkan.so' 'spirv-tools' 'shaderc' 'liblxi' 'linux-gpib' )
makedepends=('cmake' 'git' 'vulkan-headers' 'catch2')
source=("git+https://github.com/ngscopeclient/scopehal-apps.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/scopehal-apps"
echo "0.0."$(git describe --always)
}
prepare() {
sed -i 's%url = \.\./%url = https://github.com/ngscopeclient/%' "$srcdir/scopehal-apps/.gitmodules"
cd "$srcdir/scopehal-apps"
git submodule update --init --recursive
}
build() {
cmake \
-B build \
-S "$srcdir/scopehal-apps" \
-Wno-dev \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=/usr
# -DBUILD_DOCS=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|