1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/community/libdispatch/APKBUILD
2025-04-27 13:29:59 +00:00

48 lines
1.7 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=libdispatch
pkgver=6.1
pkgrel=0
pkgdesc="Comprehensive support for concurrent code execution on multicore hardware"
url="https://apple.github.io/swift-corelibs-libdispatch"
arch="all"
license="Apache-2.0"
depends_dev="$pkgname bsd-compat-headers"
makedepends="$depends_dev clang cmake samurai linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/apple/swift-corelibs-libdispatch/archive/swift-$pkgver-RELEASE/libdispatch-$pkgver.tar.gz
avoid-libkqueue.patch
remove-werror.patch
getprogname-musl.patch
"
builddir="$srcdir/swift-corelibs-libdispatch-swift-$pkgver-RELEASE"
build() {
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
export CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
export CC=clang
export CXX=clang++
cmake -G Ninja -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build build
}
check() {
ctest --test-dir build \
-E dispatch_select # fail
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
09613b213e57f6c2ca483a0a7833b2240e5017cf33f90405f88cbf20131b301f96127f69808720e44f6a050f1ae19f80da40f6eecc63395beeea4f796d27b222 libdispatch-6.1.tar.gz
f446969a2ccd6368b8ae994712019271438b050659e6a600f1d542516981ff9879d65ba48c5c0c2664ed9961aa61edb6c8f5febe447bdeb0ad71b0d9fcd426df avoid-libkqueue.patch
28d74bee58c1db1ed6d865dfea7e6aca18435b5ccfa77bd172fed17bda93b8ed997b614c40b728e3412a3a61531f01ce1f2ce636dc08a21d1606a7099da7a90f remove-werror.patch
148da81026badd7999c2317dfcfe274e544562a5ef294253738add68d203e450d430a16f43eb6674c3b3b3f18a6b82799bce3f5aebcbe3f80ee460dbb38e4663 getprogname-musl.patch
"