llvm - mesa update
This commit is contained in:
1 parent
19055def06
commit
c325f4697f
9 files changed
+77
-136
No files matched your search
@@ -1,42 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
name='clang'
|
||||
release='5'
|
||||
version='20.1.7'
|
||||
release='6'
|
||||
version='22.1.0'
|
||||
url='https://github.com/llvm/llvm-project'
|
||||
description='The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.'
|
||||
email='aliriza.keskin@pardus.org.tr'
|
||||
maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=(
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/clang-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/clang-tools-extra-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz"
|
||||
)
|
||||
|
||||
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-project-$version.src.tar.xz")
|
||||
depends=(llvm)
|
||||
makedepends=()
|
||||
sha256sums=(
|
||||
'cb74965a2481008ae405419357a55fda2df6fa3aee262a0a9293a558532a29ae'
|
||||
'0e1c675cf36bc5625514bf0dc582d39cb9b1cd0909601a46a2190f3afbc95633'
|
||||
'10b62d003f16afbd1a5ee0aa6397704c13d9a12a2562103998a8c1eff4a0f1ea'
|
||||
'afdab526c9b337a4eacbb401685beb98a18fb576037ecfaa93171d4c644fe791'
|
||||
)
|
||||
|
||||
sha256sums=('25d2e2adc4356d758405dd885fcfd6447bce82a90eb78b6b87ce0934bd077173')
|
||||
group=(sys.devel)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version.src
|
||||
cd llvm-project-$version.src
|
||||
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
|
||||
prepare(){
|
||||
mv ../cmake{-$version.src,}
|
||||
mv ../clang-tools-extra-$version.src ../clang-$version.src/tools/extra
|
||||
}
|
||||
|
||||
local cmake_args=(
|
||||
-G Ninja
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
@@ -59,15 +42,15 @@ local cmake_args=(
|
||||
)
|
||||
|
||||
setup(){
|
||||
mkdir build && cd build
|
||||
cmake .. ${cmake_args[@]}
|
||||
mkdir clang/build
|
||||
cmake -S clang -B clang/build ${cmake_args[@]}
|
||||
}
|
||||
|
||||
build(){
|
||||
ninja -C build ${jobs}
|
||||
ninja -C clang/build ${jobs}
|
||||
}
|
||||
|
||||
package(){
|
||||
ninja -C build install ${jobs}
|
||||
ninja -C clang/build install ${jobs}
|
||||
}
|
||||
|
||||
+20
-26
@@ -1,41 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
name='lld'
|
||||
release='5'
|
||||
version='20.1.7'
|
||||
release='6'
|
||||
version='22.1.0'
|
||||
url='https://github.com/llvm/llvm-project'
|
||||
description='The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.'
|
||||
email='aliriza.keskin@pardus.org.tr'
|
||||
maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=(
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lld-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/libunwind-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-$version.src.tar.xz"
|
||||
)
|
||||
|
||||
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-project-$version.src.tar.xz")
|
||||
depends=(llvm)
|
||||
makedepends=()
|
||||
sha256sums=(
|
||||
'9cb94dac7db0e1f2b664469e1574c0b350bec3eacd0cbc524481a6f65fc0f185'
|
||||
'afdab526c9b337a4eacbb401685beb98a18fb576037ecfaa93171d4c644fe791'
|
||||
'46081293b2f857caca68a266cf11fad8366315c470a9a6766868ed6c369bac0c'
|
||||
'10b62d003f16afbd1a5ee0aa6397704c13d9a12a2562103998a8c1eff4a0f1ea'
|
||||
)
|
||||
|
||||
sha256sums=('25d2e2adc4356d758405dd885fcfd6447bce82a90eb78b6b87ce0934bd077173')
|
||||
group=(sys.devel)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version.src
|
||||
|
||||
prepare(){
|
||||
mv ../cmake{-$version.src,}
|
||||
mv ../libunwind{-$version.src,}
|
||||
}
|
||||
cd llvm-project-$version.src
|
||||
|
||||
local cmake_args=(
|
||||
-G Ninja
|
||||
-Wno-dev
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_DOCDIR=share/doc
|
||||
@@ -51,16 +35,26 @@ local cmake_args=(
|
||||
-DSPHINX_WARNINGS_AS_ERRORS=OFF
|
||||
)
|
||||
|
||||
export CFLAGS="-O2 -DNDEBUG -Ilibunwind/include"
|
||||
export CXXFLAGS="-O2 -DNDEBUG -Ilibunwind/include"
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
|
||||
|
||||
prepare(){
|
||||
ln -s ../../libunwind/include/mach-o/ lld/MachO/mach-o
|
||||
}
|
||||
|
||||
setup(){
|
||||
mkdir build && cd build
|
||||
cmake .. ${cmake_args[@]}
|
||||
mkdir lld/build
|
||||
cmake -S lld -B lld/build ${cmake_args[@]}
|
||||
}
|
||||
|
||||
build(){
|
||||
ninja -C build ${jobs}
|
||||
ninja -C lld/build ${jobs}
|
||||
}
|
||||
|
||||
package(){
|
||||
ninja -C build install ${jobs}
|
||||
ninja -C lld/build install ${jobs}
|
||||
}
|
||||
|
||||
+11
-21
@@ -1,25 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
name='llvm'
|
||||
release='5'
|
||||
version='20.1.7'
|
||||
release='6'
|
||||
version='22.1.0'
|
||||
url='https://llvm.org'
|
||||
description='Low Level Virtual Machine'
|
||||
email='aliriza.keskin@pardus.org.tr'
|
||||
maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-$version.src.tar.xz"
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz"
|
||||
"https://anduin.linuxfromscratch.org/BLFS/llvm/llvm-third-party.src.tar.xz")
|
||||
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-project-$version.src.tar.xz")
|
||||
depends=(libffi xz-utils libxml2 zlib)
|
||||
makedepends=(git)
|
||||
sha256sums=('10b62d003f16afbd1a5ee0aa6397704c13d9a12a2562103998a8c1eff4a0f1ea'
|
||||
'afdab526c9b337a4eacbb401685beb98a18fb576037ecfaa93171d4c644fe791'
|
||||
'640dfceac068374e3dbce3576892712d157705b35dfe13dd17518c256ad29d5e')
|
||||
makedepends=()
|
||||
sha256sums=('25d2e2adc4356d758405dd885fcfd6447bce82a90eb78b6b87ce0934bd077173')
|
||||
group=(sys.devel)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd llvm-$version.src
|
||||
cd llvm-project-$version.src
|
||||
|
||||
export PYTHON=/usr/bin/python3
|
||||
|
||||
@@ -38,31 +34,25 @@ cmake_args=(
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
-DLLVM_ENABLE_SPHINX=OFF
|
||||
-DLLVM_INCLUDE_BENCHMARKS=OFF
|
||||
-DLLVM_INCLUDE_TESTS=OFF
|
||||
-DLLVM_INSTALL_UTILS=ON
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON
|
||||
-DLLVM_USE_PERF=ON
|
||||
-DSPHINX_WARNINGS_AS_ERRORS=OFF
|
||||
)
|
||||
|
||||
prepare(){
|
||||
mv ../cmake{-$version.src,}
|
||||
mv ../llvm-third-party.src ../third-party
|
||||
}
|
||||
|
||||
setup(){
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. ${cmake_args[@]}
|
||||
mkdir llvm/build
|
||||
cmake -S llvm -B llvm/build ${cmake_args[@]}
|
||||
}
|
||||
|
||||
build(){
|
||||
cd build
|
||||
ninja ${jobs}
|
||||
ninja -C llvm/build ${jobs}
|
||||
}
|
||||
|
||||
package(){
|
||||
cd build
|
||||
ninja install ${jobs}
|
||||
ninja -C llvm/build install ${jobs}
|
||||
mv ${DESTDIR}/usr/lib{,64}
|
||||
}
|
||||
|
||||
+14
-11
@@ -1,34 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
name='libunwind'
|
||||
release='1'
|
||||
version='1.7.0'
|
||||
release='2'
|
||||
version='1.8.3'
|
||||
url='https://savannah.nongnu.org/projects/libunwind'
|
||||
description='Portable and efficient API to determine the call-chain of a program '
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/libunwind/libunwind/archive/refs/tags/v$version-rc2.tar.gz")
|
||||
source=("https://github.com/libunwind/libunwind/archive/refs/tags/v$version.tar.gz")
|
||||
depends=()
|
||||
makedepends=()
|
||||
md5sums=('e4b4b6376884b02fb540f04b763df7b9')
|
||||
sha256sums=('21b26bc75cd37b548d7952f2794cde711efa6c6151c4147cc3c52cfedbf11df4')
|
||||
group=(sys.libs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version-rc2
|
||||
cd $name-$version
|
||||
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
|
||||
setup(){
|
||||
autoreconf -fvi
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/
|
||||
|
||||
autoreconf -i
|
||||
./configure --prefix=/usr \
|
||||
--enable-cxx-exceptions \
|
||||
--disable-tests
|
||||
}
|
||||
|
||||
build(){
|
||||
make -j`nproc`
|
||||
make $job
|
||||
}
|
||||
|
||||
package(){
|
||||
make install -j`nproc`
|
||||
make install $jobs
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user