updated monocoque PKGBUILDS
This commit is contained in:
parent
17b4bd142a
commit
317adf2187
|
|
@ -0,0 +1,47 @@
|
||||||
|
# Maintainer: Paul Jones <paul@spacefreak18.xyz>
|
||||||
|
_reponame=monocoque
|
||||||
|
pkgname=monocoque-git
|
||||||
|
pkgver=0.1.0r94
|
||||||
|
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
|
||||||
|
pulse-native-provider
|
||||||
|
libxdg-basedir
|
||||||
|
libuv
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
git
|
||||||
|
cmake
|
||||||
|
)
|
||||||
|
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 -p build
|
||||||
|
cd build
|
||||||
|
cmake -DUSE_PULSEAUDIO=yes ..
|
||||||
|
make
|
||||||
|
|
||||||
|
mkdir -p "${pkgdir}/usr/bin/"
|
||||||
|
cp "$srcdir/$_reponame"/build/$_reponame "${pkgdir}/usr/bin/$_reponame"
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
_reponame=monocoque
|
_reponame=monocoque
|
||||||
pkgname=monocoque
|
pkgname=monocoque
|
||||||
pkgver=0.2.0
|
pkgver=0.2.0
|
||||||
pkgrel=1
|
pkgrel=3
|
||||||
pkgdesc="Device Manager for Racing Sims"
|
pkgdesc="Device Manager for Racing Sims"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/spacefreak18/monocoque"
|
url="https://github.com/spacefreak18/monocoque"
|
||||||
|
|
@ -14,7 +14,9 @@ depends=(
|
||||||
libxml2
|
libxml2
|
||||||
argtable
|
argtable
|
||||||
libconfig
|
libconfig
|
||||||
pipewire-pulse
|
pulse-native-provider
|
||||||
|
libxdg-basedir
|
||||||
|
libuv
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
git
|
git
|
||||||
|
|
@ -27,29 +29,16 @@ sha256sums=(
|
||||||
'SKIP'
|
'SKIP'
|
||||||
)
|
)
|
||||||
|
|
||||||
build() {
|
package() {
|
||||||
cd "$srcdir" || exit 1
|
cd "$srcdir/$_reponame" || exit 1
|
||||||
cd monocoque || exit 1
|
|
||||||
git submodule sync --recursive
|
git submodule sync --recursive
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ..
|
mkdir -p build
|
||||||
cmake \
|
cd build
|
||||||
-B "${_reponame}/build" \
|
cmake -Wno-dev -DUSE_PULSEAUDIO=yes ..
|
||||||
-S "${_reponame}" \
|
make
|
||||||
-DUSE_PULSEAUDIO=YES \
|
|
||||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
||||||
-Wno-dev
|
|
||||||
cmake --build "${_reponame}/build"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
check() {
|
|
||||||
ctest --test-dir "${_reponame}/build" --output-on-failure --stop-on-failure
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
mkdir -p "${pkgdir}/usr/bin/"
|
mkdir -p "${pkgdir}/usr/bin/"
|
||||||
cp "${_reponame}/build/monocoque" "${pkgdir}/usr/bin/"
|
cp "$srcdir/$_reponame"/build/monocoque "${pkgdir}/usr/bin/monocoque"
|
||||||
install -D -m644 "${_reponame}/LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${_reponame}"
|
install -D -m644 "$srcdir/$_reponame"/LICENSE.rst -t "${pkgdir}/usr/share/licenses/$_reponame"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue