testing/zycore: build shared library, split package

This commit is contained in:
Cormac Stephenson 2024-01-18 00:50:11 +00:00 committed by omni
parent 9a05d1c489
commit ffb2e5fadb

View File

@ -2,12 +2,13 @@
# Maintainer: Michael M <mic@hael.xyz>
pkgname=zycore
pkgver=1.4.1
pkgrel=0
pkgrel=1
pkgdesc="Independent types for Zyantific projects (development files)"
url="https://github.com/zyantific/zycore-c"
arch="x86 x86_64 aarch64 armhf armv7 ppc64le riscv64"
license="MIT"
makedepends="cmake samurai"
makedepends="cmake samurai doxygen"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zyantific/zycore-c/archive/v$pkgver/zycore-c-$pkgver.tar.gz"
builddir="$srcdir/zycore-c-$pkgver"
@ -18,7 +19,7 @@ build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DZYCORE_BUILD_SHARED_LIB=ON \
-DCMAKE_BUILD_TYPE=None \
$crossopts
cmake --build build
@ -33,5 +34,5 @@ package() {
}
sha512sums="
8cfb1b5dc49ae1d3216398b125125ced52603c6ae7772d08ff5f8c7be0ab7d7aa257f70678f7afa7805b7937520808fa5968ae98bfe7604e46c56e79460c0b5e zycore-dev-1.4.1.tar.gz
8cfb1b5dc49ae1d3216398b125125ced52603c6ae7772d08ff5f8c7be0ab7d7aa257f70678f7afa7805b7937520808fa5968ae98bfe7604e46c56e79460c0b5e zycore-1.4.1.tar.gz
"