main/libcbor: use samurai

This commit is contained in:
J0WI 2022-04-09 16:10:38 +02:00 committed by alice
parent 3f54a530fc
commit 7216ef5a04

View File

@ -2,12 +2,12 @@
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=libcbor
pkgver=0.9.0
pkgrel=0
pkgrel=1
pkgdesc="CBOR protocol implementation for C"
url="https://github.com/PJK/libcbor"
arch="all"
license="MIT"
makedepends="cmake"
makedepends="cmake samurai"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/PJK/libcbor/archive/refs/tags/v$pkgver.tar.gz"
@ -15,7 +15,7 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \