Skip to content
Snippets Groups Projects
Commit 0371a42e authored by alice's avatar alice
Browse files

community/capnproto: build with samurai

parent 8e080e9c
No related merge requests found
......@@ -2,13 +2,13 @@
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=capnproto
pkgver=0.10.2
pkgrel=0
pkgrel=1
pkgdesc="Tools for working with the Cap'n Proto format"
url="https://capnproto.org/"
arch="all"
license="MIT"
depends_dev="libucontext-dev"
makedepends="$depends_dev cmake linux-headers"
makedepends="$depends_dev cmake linux-headers samurai"
subpackages="$pkgname-dev"
source="https://capnproto.org/$pkgname-c++-$pkgver.tar.gz
ucontext.patch"
......@@ -19,12 +19,11 @@ case "$CARCH" in
esac
build() {
cmake -B build \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
.
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
......@@ -40,8 +39,8 @@ package() {
# See https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#dev.28.29
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin
amove usr/bin
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment