Switch to meson build system

This commit is contained in:
2023-07-23 23:43:47 +02:00
parent 33a760489e
commit ad12f7a981
3 changed files with 43 additions and 43 deletions

View File

@@ -6,14 +6,16 @@ url='https://github.com/Tabascl/fantasize.git'
source=("$pkgname-$pkgver.tar.gz::https://github.com/Tabascl/fantasize/archive/refs/tags/v$pkgver.tar.gz")
arch=('x86_64')
license=('GPL3')
makedepends=('git' 'cmake' 'nlohmann-json' 'boost')
makedepends=('git' 'meson' 'nlohmann-json' 'boost')
sha256sums=('SKIP')
build() {
cmake -S "$pkgname-$pkgver/app" -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
meson setup build "$pkgname-$pkgver/app" -Dbuildtype=Release
cd build
meson compile
}
package() {
cmake --install build --prefix "$pkgdir/" --verbose
cd build
meson install
}