blob: a20ec03ae036a0873193004a5b5e0b7891870b4f (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Maintainer: Arvid Norlander <VorpalBlade (at) users DOT noreply DOT github DOT com>
pkgname=fluxengine-git
pkgver=r3208.6dde81b1
pkgrel=1
pkgdesc="PSOC5 floppy disk imaging interface"
arch=('x86_64')
url="http://cowlark.com/fluxengine/"
license=('MIT')
depends=(
'curl'
'dbus'
'file'
'fmt'
'freetype2'
'glfw'
'libfmt.so'
'libprotobuf.so'
'libudev.so'
'mbedtls'
'md4c'
'protobuf'
'sqlite3'
'wxwidgets-gtk3'
'zlib'
)
makedepends=(
'boost'
'clang'
'cli11'
'nlohmann-json'
'git'
'ninja'
'xxd'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/davidgiven/fluxengine.git'
"git+https://github.com/davidgiven/ImHex.git"
"git+https://github.com/WerWolv/libwolv.git"
"git+https://github.com/ocornut/imgui.git"
"git+https://github.com/WerWolv/PatternLanguage.git"
"git+https://github.com/btzy/nativefiledialog-extended.git"
"git+https://github.com/WerWolv/xdgpp.git"
"git+https://github.com/WerWolv/libromfs.git"
"git+https://github.com/rockdreamer/throwing_ptr.git"
"git+https://github.com/sammycage/lunasvg.git"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.dep/imgui.url "$srcdir/imgui"
git config submodule.dep/imhex.url "$srcdir/ImHex"
git config submodule.dep/libromfs.url "$srcdir/libromfs"
git config submodule.dep/libwolv.url "$srcdir/libwolv"
git config submodule.dep/lunasvg.url "$srcdir/lunasvg"
git config submodule.dep/native-file-dialog.url "$srcdir/nativefiledialog-extended"
git config submodule.dep/pattern-language.url "$srcdir/PatternLanguage"
git config submodule.dep/throwing_ptr.url "$srcdir/throwing_ptr"
git config submodule.dep/xdgpp.url "$srcdir/xdgpp"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/${pkgname%-git}"
# Make all depends on tests, but we want to run them in check() instead.
make binaries
}
check() {
cd "$srcdir/${pkgname%-git}"
make tests
}
package() {
cd "$srcdir/${pkgname%-git}"
for e in fluxengine fluxengine-gui brother120tool brother240tool upgrade-flux-file; do
install -D "$e" "$pkgdir/usr/bin/$e"
done
install -Dm 644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/COPYING.md"
# Installing docs is not yet supported in a reasonable way by upstream.
}
|