1
0
forked from ports/opt
opt/lld/Pkgfile

22 lines
554 B
Plaintext
Raw Normal View History

2020-05-09 22:12:42 +10:00
# Description: Linker from the LLVM project
# URL: https:lld.//llvm.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: llvm
name=lld
2021-02-17 20:49:08 +11:00
version=11.1.0
2020-05-09 22:12:42 +10:00
release=1
2020-10-18 20:17:49 +11:00
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz)
2020-05-09 22:12:42 +10:00
build() {
2020-07-22 23:16:41 +10:00
cmake -H$name-$version.src -Bbuild -G Ninja \
2020-05-09 22:12:42 +10:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
-Wno-dev
cmake --build build
2020-07-08 23:14:57 +10:00
DESTDIR=$PKG cmake --install build
2020-05-09 22:12:42 +10:00
}