blob: 26b96825c54eba3d7be3cb79b7248d06579ad807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: soloturn@gmail.com
# Contributor: Adrian Perez de Castro <aperez@igalia.com>
_basename=libdispatch
pkgname="$_basename-git"
pkgver=2025.04.12.a.r9.g2f1ea48
pkgrel=1
pkgdesc="Support for concurrent code execution on multicore hardware, includes libblocksruntime"
arch=(i686 x86_64 arm armv6h armv7h aarch64)
url="https://apple.github.io/swift-corelibs-libdispatch/"
license=(Apache-2.0)
makedepends=(git clang cmake)
provides=($_basename)
conflicts=($_basename)
source=(
"$pkgname::git+https://github.com/apple/swift-corelibs-libdispatch.git"
#remove-werror.patch
)
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long | sed 's/^swift-DEVELOPMENT-SNAPSHOT-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
#patch -p0 < "${srcdir}/remove-werror.patch"
}
build() {
CC=clang CXX=clang++ cmake -S"${pkgname}" -Bbuild \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
check() {
cmake --build build --target test
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|