cruxports/libdispatch/Pkgfile

27 lines
943 B
Plaintext
Raw Normal View History

2022-02-26 14:04:55 -05:00
# Description: grand central dispatch, from swift corelibs
# URL: https://github.com/apple/swift-corelibs-libdispatch/releases
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: clang
2022-02-26 14:04:55 -05:00
name=libdispatch
version=5.5.3
release=1
source=(https://github.com/apple/swift-corelibs-$name/archive/refs/tags/swift-$version-RELEASE.zip)
build() {
find swift-corelibs-* -name DispatchCompilerWarnings.cmake \
2022-12-23 08:54:37 -05:00
-exec sed -i "/-Werror/d" '{}' \;
2022-02-26 14:04:55 -05:00
mkdir build && cd build
2022-12-23 08:54:37 -05:00
cmake -G Ninja -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBlocksRuntime_INCLUDE_DIR=/usr/include \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=on \
../swift-corelibs-$name-*
ninja -j ${JOBS:-1}
2022-02-26 14:04:55 -05:00
DESTDIR=$PKG ninja install
}