From c4a1cbcfb825aeeda2f3a622b58e75388c1ec99f Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Thu, 19 Sep 2024 21:21:30 -0400 Subject: [PATCH] Updated pkgbuild to actually install --- tools/distro/arch/PKGBUILD | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/tools/distro/arch/PKGBUILD b/tools/distro/arch/PKGBUILD index 089755b..238b84d 100644 --- a/tools/distro/arch/PKGBUILD +++ b/tools/distro/arch/PKGBUILD @@ -17,6 +17,7 @@ depends=( ) makedepends=( git + cmake ) source=( git+https://github.com/spacefreak18/monocoque @@ -25,18 +26,24 @@ sha256sums=( 'SKIP' ) -pkgver() { - cd "$srcdir/$_reponame" - git describe --long --tags | cut -d "-" -f 1-2 | tr "-" "r" +build() { + #-G 'Unix Makefiles' \ + cmake \ + -B "${_reponame}/build" \ + -S "${_reponame}" \ + -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() { - cd "$srcdir/$_reponame" || exit 1 - git submodule sync --recursive - git submodule update --init --recursive - mkdir build - cd build - cmake .. - make + mkdir -p "${pkgdir}/usr/bin/" + cp "${_reponame}/build/monocoque" "${pkgdir}/usr/bin/" + install -D -m644 "${_reponame}/LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${_reponame}" } -