blob: db2dfc8cbbc5ed74bffdb7b3263c0cfdd4b0efb4 (
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
|
# Maintainer: Lukas "DerGeneralFluff" Lichten <lichtenrider@hotmail.de>
_pkgbase=acc-setupmanager
pkgname="${_pkgbase}-git"
pkgver=v0.2.0.r16.1ea5443
pkgrel=1
pkgdesc="Setupmanager for Assetto Corsa Competizione using fltk and rust"
arch=('x86_64')
url="https://gitlab.com/LukasLichten/${_pkgbase}"
license=('AGPL-3.0')
# Static linking fltk
# depends=('gcc-libs' 'glibc' 'fontconfig' 'wayland' 'libx11' 'dbus' 'libxkbcommon' 'libxinerama' 'libxcursor' 'libxfixes' 'glib2' 'pango' 'cairo')
# dynamic linking fltk
depends=('fltk-git' 'gcc-libs' 'glibc' 'fontconfig' 'wayland' 'libx11')
# Bundled fltk
# depends=('gcc-libs' 'glibc' 'fontconfig' 'wayland' 'libx11' 'dbus' 'libxkbcommon' 'libxinerama' 'libxcursor' 'libxfixes' 'glib2' 'pango' 'cairo')
makedepends=('git' 'cargo' 'pango' 'cairo' 'wayland-protocols' 'dbus' 'libxkbcommon' 'libxext' 'libxft' 'libxinerama' 'libxcursor' 'libxrender' 'libxfixes')
conflicts=("${_pkgbase}")
provides=("${_pkgbase}=${pkgver}")
source=(
"git+${url}"
"acc-setupmanager.desktop"
)
md5sums=(
SKIP
ca9d91f12b1fae6f0accafe932ffbd4a
)
pkgver() {
cd "$srcdir/${_pkgbase}"
# Git, with tags available
printf "%s.r%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count $(git describe --tags --abbrev=0)..HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${_pkgbase}"
cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}
build () {
cd "$srcdir/${_pkgbase}"
# wayland support should be enabled too, but it doesn't work either way
# Static linking fltk
# cargo build -vv -F "wayland" --release
# Dynamic linking
cargo build --locked -vv -F "dynamic,wayland" --release
# Bundled fltk
# cargo build --locked -vv -F "bundled" --release
}
package() {
cd $srcdir/${_pkgbase}
install -Dm755 target/release/acc-setupmanager "${pkgdir}/usr/bin/acc-setupmanager"
install -Dm644 "src/assets/logo.svg" "${pkgdir}/usr/share/pixmaps/com.gitlab.lukaslichten.acc-setupmanager.svg"
install -Dm644 "${srcdir}/acc-setupmanager.desktop" "${pkgdir}/usr/share/applications/com.gitlab.lukaslichten.acc-setupmanager.desktop"
}
|