diff --git a/tools/distro/arch/PKGBUILD b/tools/distro/arch/PKGBUILD new file mode 100644 index 0000000..089755b --- /dev/null +++ b/tools/distro/arch/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Paul Jones +_reponame=monocoque +pkgname=monocoque-git +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Device Manager for Racing Sims" +arch=('x86_64') +url="https://github.com/spacefreak18/monocoque" +license=('GPL3') +depends=( + hidapi + libserialport + libxml2 + argtable + libconfig + pipewire-pulse +) +makedepends=( + git +) +source=( + git+https://github.com/spacefreak18/monocoque +) +sha256sums=( + 'SKIP' +) + +pkgver() { + cd "$srcdir/$_reponame" + git describe --long --tags | cut -d "-" -f 1-2 | tr "-" "r" +} + +package() { + cd "$srcdir/$_reponame" || exit 1 + git submodule sync --recursive + git submodule update --init --recursive + mkdir build + cd build + cmake .. + make +} +