From 2a0415b014bed393b1755e754f05ed12f3f98318 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 16:59:27 +0200 Subject: [PATCH] added clang while at it --- clang/build | 8 ++++++++ clang/package | 5 +++++ cmake/build | 6 ++++++ cmake/package | 5 +++++ ninja/build | 4 ++++ ninja/package | 5 +++++ 6 files changed, 33 insertions(+) create mode 100755 clang/build create mode 100755 clang/package create mode 100755 cmake/build create mode 100755 cmake/package create mode 100755 ninja/build create mode 100755 ninja/package diff --git a/clang/build b/clang/build new file mode 100755 index 0000000..9d29fd7 --- /dev/null +++ b/clang/build @@ -0,0 +1,8 @@ +wget https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz +tar -xf clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz +cd clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04 +cd OBJ_ROOT +cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$1"/usr/bin +make -j`nproc` +make install DESTDIR="$1" + diff --git a/clang/package b/clang/package new file mode 100755 index 0000000..4729097 --- /dev/null +++ b/clang/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="clang" +pkg_config_makedepends="cmake ninja" +pkg_config_depends="" diff --git a/cmake/build b/cmake/build new file mode 100755 index 0000000..ff388fa --- /dev/null +++ b/cmake/build @@ -0,0 +1,6 @@ +wget https://github.com/Kitware/CMake/releases/download/v3.21.0-rc2/cmake-3.21.0-rc2.tar.gz +tar -xf cmake-3.21.0-rc2.tar.gz +cd cmake-3.21.0-rc2.tar.gz +./bootstrap +make +make install DESTDIR="$1" diff --git a/cmake/package b/cmake/package new file mode 100755 index 0000000..cc8621b --- /dev/null +++ b/cmake/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="cmake" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/ninja/build b/ninja/build new file mode 100755 index 0000000..dea8f27 --- /dev/null +++ b/ninja/build @@ -0,0 +1,4 @@ +git clone https://github.com/ninja-build/ninja.git +cd ninja +./configure.py --bootstrap +mv ninja "$1"/usr/bin diff --git a/ninja/package b/ninja/package new file mode 100755 index 0000000..86f1ce3 --- /dev/null +++ b/ninja/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.0.1" +pkg_config_name="ninja" +pkg_config_makedepends="" +pkg_config_depends=""