diff options
author | ahugeat | 2023-01-04 21:25:09 +0100 |
---|---|---|
committer | ahugeat | 2023-01-04 21:25:09 +0100 |
commit | 40f68cc4969fe652a9a1b984d931bec864007c91 (patch) | |
tree | 5df9616c7434b2e11c1cdc9a99bd21a1116b9628 | |
parent | d35dd629250b0710775b6da36d414736384a75a5 (diff) | |
download | aur-gf-git.tar.gz |
Fix cmake configuration
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 8 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = gf-git pkgdesc = Gamedev Framework (gf) is a framework to build 2D games in C++17. It is based on SDL and OpenGL ES 2.0, and presents an API that is very similar to the graphics module of SFML with additional features (development version). - pkgver = 1.0.0.r1606.bb7b6e6-1 + pkgver = 1.0.0.r1607.877e07e pkgrel = 1 url = https://gamedevframework.github.io/ arch = x86_64 @@ -1,6 +1,6 @@ # Maintainer: Arthur HUGEAT <hugeat dot arthur at gmail dot com> pkgname=gf-git -pkgver=1.0.0.r1606.bb7b6e6 +pkgver=1.0.0.r1607.877e07e pkgrel=1 pkgdesc="Gamedev Framework (gf) is a framework to build 2D games in C++17. It is based on SDL and OpenGL ES 2.0, and presents an API that is very similar to the graphics module of SFML with additional features (development version)." arch=('x86_64' 'i686') @@ -35,19 +35,17 @@ build() { -DGF_SINGLE_COMPILTATION_UNIT=ON \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ - . - make + -S ${srcdir}/gf \ + -B ${srcdir}/build + cmake --build ${srcdir}/build --parallel } check() { - cd "${srcdir}/gf" - make test + ctest --test-dir ${srcdir}/build/tests } package() { - cd "${srcdir}/gf" - - make DESTDIR="$pkgdir/" install + cmake --install ${srcdir}/build --prefix ${pkgdir}/usr mv ${pkgdir}/usr/share/doc/GF ${pkgdir}/usr/share/doc/gf - install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt + install -Dm644 ${srcdir}/gf/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt } |