blob: 5a4be705ad28d1d6e7b02a42c8c301a0d88e9225 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Alex Curtis <AlexDotJDotCurtisAtProtonDotMe>
pkgname=('limo' 'limo-docs')
pkgbase=limo
_app_id="io.github.${pkgbase}_app.$pkgbase"
pkgver=1.2.2
pkgrel=2
pkgdesc="A simple Qt based mod manager"
arch=('x86_64')
url="https://github.com/limo-app/limo"
license=('GPL-3.0-or-later')
depends=(
'cpr'
'curl'
'hicolor-icon-theme'
'jsoncpp'
'libarchive'
'libloot'
'libunrar'
'lz4'
'openssl'
'pugixml'
'qt5-base'
'qt5-svg'
'xdg-utils'
'zlib'
'zstd'
)
makedepends=(
'cmake'
'doxygen' # docs
'git'
'graphviz' # docs
)
checkdepends=('catch2')
source=("git+https://github.com/limo-app/limo.git#tag=v$pkgver"
'libloot-compat.patch')
sha256sums=('d9d9870d56ffef64400c40e19a358ed422ded57dd4d09cfec2b2b4dfb3a2f60b'
'4b3b21fa40c64c23c6e5ffd6a0408dcd073e5d1c13a750926bbb249423c579b1')
prepare() {
cd "$pkgbase"
# Separate load list into two calls to preserve libloot compatibility
# https://github.com/limo-app/limo/issues/203
# https://github.com/limo-app/limo/pull/191
patch -Np1 -i ../libloot-compat.patch
}
build() {
cmake -B build -S "$pkgbase" \
-DCMAKE_BUILD_TYPE='RelWithDebInfo' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DLIMO_INSTALL_PREFIX='/usr' \
-DUSE_SYSTEM_LIBUNRAR='ON' \
-DBUILD_TESTING='OFF' \
-Wno-dev
cmake --build build
cd "$pkgbase"
# build documentation
doxygen src/lmm_Doxyfile
}
# 88% tests passed, 7 tests failed out of 60
#check() {
# ctest --test-dir build --output-on-failure
#}
package_limo() {
DESTDIR="$pkgdir" cmake --install build
cd "$pkgbase"
install -Dm644 "flatpak/${_app_id}.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
install -Dm644 resources/logo.png \
"$pkgdir/usr/share/icons/hicolor/1024x1024/apps/${_app_id}.png"
install -Dm644 resources/logo_small.png \
"$pkgdir/usr/share/icons/hicolor/64x64/apps/${_app_id}.png"
}
package_limo-docs() {
pkgdesc+=" (documentation)"
depends=()
cd "$pkgbase"
install -d "$pkgdir/usr/share/doc/$pkgbase"
cp -r doc/* "$pkgdir/usr/share/doc/$pkgbase/"
}
|