blob: 51a01f1d154a5b27afd48d0b64deb165bee87991 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=all-logic
pkgver=1.4.0
pkgrel=3
pkgdesc='ALL LOGIC is an unofficial multi-vendor logic analyzer host'
arch=($CARCH)
url='https://github.com/Doukeyi-X/ALL-LOGIC'
license=('GPL-3.0-only')
provides=(
${pkgname}
dsview
)
conflicts=(
${pkgname}
dsview
)
replaces=()
_qt=qt6
depends=(
hicolor-icon-theme
glib2
glibc
libgcc
libstdc++
libusb
libz.so
${_qt}-base
fftw
python
)
makedepends=(
boost
boost-libs
cmake
git
${_qt}-tools
ninja
pkgconf
vulkan-headers
)
source=("${pkgname}::git+${url}.git#tag=v${pkgver}")
sha256sums=('b7d043385acf6486affb3e9a0cbda270efa541a51938c2e96ee2ea57c42f6383')
prepare() {
git -C "${srcdir}/${pkgname}" clean -dfx
cd "${srcdir}/${pkgname}"
# Fix linux PR #1
git cherry-pick -n b911499058d4da2eec4a7747ce73bc604058de17
git cherry-pick -n e4ced0bcd015ef6ae3268efcdc2b9fd3287c3ae3
git cherry-pick -n f59ed75dae2466518392f04e50fdb7b2d13245b9
git cherry-pick -n 366471d0e8693af3f4292268960ab087b4129ea1
sed -i 's#MODE="0666"#TAG+="uaccess"#' DSView/DreamSourceLab.rules
}
build() {
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
export LDFLAGS+=" ${LDFLAGS}"
cd "${srcdir}"/${pkgname}/
# see:https://wiki.archlinux.org/title/CMake_package_guidelines
cmake -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-Wno-dev \
-B build \
-G Ninja
ninja -C build
}
check() {
cd "${srcdir}"/${pkgname}/
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}/build install
install -Dm0644 "${srcdir}/${pkgname}/COPYING" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|