Files
monocoque/tools/distro/arch/PKGBUILD
T

56 lines
1.1 KiB
Bash
Raw Normal View History

2024-09-02 12:47:17 -04:00
# Maintainer: Paul Jones <paul@spacefreak18.xyz>
_reponame=monocoque
2024-11-18 16:53:27 -05:00
pkgname=monocoque
pkgver=0.2.0
2024-09-02 12:47:17 -04:00
pkgrel=1
pkgdesc="Device Manager for Racing Sims"
arch=('x86_64')
url="https://github.com/spacefreak18/monocoque"
license=('GPL3')
2024-11-18 16:53:27 -05:00
_commit=12509e9709871afcb3ae264823b4a7d3c3b71bf7
2024-09-02 12:47:17 -04:00
depends=(
hidapi
libserialport
libxml2
argtable
libconfig
pipewire-pulse
)
makedepends=(
git
2024-09-19 21:21:30 -04:00
cmake
2024-09-02 12:47:17 -04:00
)
2024-11-18 16:53:27 -05:00
source=("git+https://github.com/spacefreak18/monocoque.git#commit=$_commit")
2024-09-02 12:47:17 -04:00
sha256sums=(
'SKIP'
)
2024-09-19 21:21:30 -04:00
build() {
2024-09-19 21:44:22 -04:00
cd "$srcdir" || exit 1
2024-11-18 16:53:27 -05:00
cd monocoque || exit 1
2024-09-19 21:44:22 -04:00
git submodule sync --recursive
git submodule update --init --recursive
2024-11-18 16:53:27 -05:00
cd ..
2024-09-19 21:21:30 -04:00
cmake \
-B "${_reponame}/build" \
-S "${_reponame}" \
2024-11-18 16:53:27 -05:00
-DUSE_PULSEAUDIO=YES \
2024-09-19 21:21:30 -04:00
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build "${_reponame}/build"
2024-09-02 12:47:17 -04:00
}
2024-09-19 21:21:30 -04:00
check() {
ctest --test-dir "${_reponame}/build" --output-on-failure --stop-on-failure
2024-09-02 12:47:17 -04:00
}
2024-09-19 21:21:30 -04:00
package() {
mkdir -p "${pkgdir}/usr/bin/"
cp "${_reponame}/build/monocoque" "${pkgdir}/usr/bin/"
install -D -m644 "${_reponame}/LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${_reponame}"
}