Updated pkgbuild to actually install

This commit is contained in:
Paul Dino Jones 2024-09-19 21:21:30 -04:00
parent 128d02e71a
commit c4a1cbcfb8
1 changed files with 18 additions and 11 deletions

View File

@ -17,6 +17,7 @@ depends=(
) )
makedepends=( makedepends=(
git git
cmake
) )
source=( source=(
git+https://github.com/spacefreak18/monocoque git+https://github.com/spacefreak18/monocoque
@ -25,18 +26,24 @@ sha256sums=(
'SKIP' 'SKIP'
) )
pkgver() { build() {
cd "$srcdir/$_reponame" #-G 'Unix Makefiles' \
git describe --long --tags | cut -d "-" -f 1-2 | tr "-" "r" 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() { package() {
cd "$srcdir/$_reponame" || exit 1 mkdir -p "${pkgdir}/usr/bin/"
git submodule sync --recursive cp "${_reponame}/build/monocoque" "${pkgdir}/usr/bin/"
git submodule update --init --recursive install -D -m644 "${_reponame}/LICENSE.rst" -t "${pkgdir}/usr/share/licenses/${_reponame}"
mkdir build
cd build
cmake ..
make
} }