diff options
author | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
commit | 606bc59d0f8f67815c6a717843835477d44db6b3 (patch) | |
tree | 687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/devel | |
parent | 1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff) |
added ungoogled chromium
Diffstat (limited to 'repo/devel')
-rw-r--r-- | repo/devel/clang.xibuild | 4 | ||||
-rw-r--r-- | repo/devel/compiler-rt.xibuild | 38 | ||||
-rw-r--r-- | repo/devel/libexecinfo.xibuild | 32 | ||||
-rw-r--r-- | repo/devel/lld.xibuild | 29 | ||||
-rw-r--r-- | repo/devel/llvm-libunwind.xibuild | 48 | ||||
-rw-r--r-- | repo/devel/waf.xibuild | 14 |
6 files changed, 163 insertions, 2 deletions
diff --git a/repo/devel/clang.xibuild b/repo/devel/clang.xibuild index 8ee7c38..3b93ba3 100644 --- a/repo/devel/clang.xibuild +++ b/repo/devel/clang.xibuild @@ -3,14 +3,14 @@ MAKEDEPS="cmake llvm libxml2 ninja python python-markupsafe python-pygments" DEPS="curl gcc libssh2 openssl" -PKG_VER=13.0.1 +PKG_VER=13.0.0 SOURCE=https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/clang-$PKG_VER.src.tar.xz DESC="Systems programming language focused on safety, speed and concurrency" ADDITIONAL=" patches/30-Enable-stack-protector-by-default-for-Alpine-Linux.patch patches/10-add-musl-triples.patch - " +" prepare () { apply_patches diff --git a/repo/devel/compiler-rt.xibuild b/repo/devel/compiler-rt.xibuild new file mode 100644 index 0000000..abff3dc --- /dev/null +++ b/repo/devel/compiler-rt.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="compiler-rt" +DESC="LLVM compiler-rt runtime libraries" + +MAKEDEPS="cmake libexecinfo" +DEPS="musl " + +PKG_VER=13.0.0 +SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/compiler-rt-$PKG_VER.src.tar.xz" +ADDITIONAL="link-execinfo.patch " + +prepare () { + apply_patches +} + +build () { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DBUILD_STATIC_LIBS=OFF \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCOMPILER_RT_INCLUDE_TESTS=OFF \ + -DCOMPILER_RT_BUILD_SANITIZERS=ON \ + -DCOMPILER_RT_BUILD_XRAY=ON \ + -DCOMPILER_RT_INSTALL_PATH="/usr/lib/clang/$PKG_VER" \ + -DLLVM_EXTERNAL_LIT="/usr/bin/lit" \ + + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} diff --git a/repo/devel/libexecinfo.xibuild b/repo/devel/libexecinfo.xibuild new file mode 100644 index 0000000..67e1002 --- /dev/null +++ b/repo/devel/libexecinfo.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="libexecinfo" +DESC="A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility." + +MAKEDEPS="make " +DEPS="musl " + +PKG_VER=1.1 +SOURCE="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-$PKG_VER.tar.bz2" +ADDITIONAL="30-linux-makefile.patch 20-define-gnu-source.patch 10-execinfo.patch " + +prepare () { + apply_patches +} + +build () { + export CFLAGS="${CFLAGS} -fno-omit-frame-pointer" + make PREFIX=/usr +} + +package () { + install -D -m755 execinfo.h \ + "$PKG_DEST"/usr/include/execinfo.h + install -D -m755 stacktraverse.h \ + "$PKG_DEST"/usr/include/stacktraverse.h + install -D -m755 libexecinfo.so.1 \ + "$PKG_DEST"/usr/lib/libexecinfo.so.1 + ln -s /usr/lib/libexecinfo.so.1 \ + "$PKG_DEST"/usr/lib/libexecinfo.so + +} diff --git a/repo/devel/lld.xibuild b/repo/devel/lld.xibuild new file mode 100644 index 0000000..c2dff7f --- /dev/null +++ b/repo/devel/lld.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="lld" +DESC="The LLVM Linker" + +MAKEDEPS="cmake llvm-libunwind" +DEPS="musl llvm " + +PKG_VER=13.0.0 +SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/lld-$PKG_VER.src.tar.xz" + +build () { + cmake -B build \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + -DLLVM_INCLUDE_TESTS=ON \ + -DLLVM_EXTERNAL_LIT=/usr/bin/lit + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build + install -Dm 644 docs/ld.lld.1 $PKG_DEST/usr/share/man/man1/ +} diff --git a/repo/devel/llvm-libunwind.xibuild b/repo/devel/llvm-libunwind.xibuild new file mode 100644 index 0000000..9c61c31 --- /dev/null +++ b/repo/devel/llvm-libunwind.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="llvm-libunwind" +DESC="LLVM version of libunwind library" + +MAKEDEPS="cmake " +DEPS="musl " + +PKG_VER=13.0.0 +SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libunwind-$PKG_VER.src.tar.xz" + +ADDITIONAL=" + https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/llvm-$PKG_VER.src.tar.xz + https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/libcxx-$PKG_VER.src.tar.xz + libunwind-link-libssp.patch + libcxx-musl.patch +" + +prepare () { + tar xvf libunwind-$PKG_VER.src.tar.xz + tar xvf llvm-$PKG_VER.src.tar.xz + tar xvf libcxx-$PKG_VER.src.tar.xz + mv libunwind-$PKG_VER.src libunwind + mv llvm-$PKG_VER.src llvm + mv libcxx-$PKG_VER.src libcxx + + apply_patches +} + +build () { + cmake -B build -G Ninja -S libunwind \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIBUNWIND_HAS_NODEFAULTLIBS_FLAG=OFF \ + -DLIBUNWIND_STANDALONE_BUILD=ON + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build + mkdir -p "$PKG_DEST"/usr/include/mach-o + cp libunwind/include/*.h "$PKG_DEST"/usr/include/ + cp libunwind/include/mach-o/*.h "$PKG_DEST"/usr/include/mach-o/ + +} diff --git a/repo/devel/waf.xibuild b/repo/devel/waf.xibuild new file mode 100644 index 0000000..a479282 --- /dev/null +++ b/repo/devel/waf.xibuild @@ -0,0 +1,14 @@ +#!/bin/sh + +NAME="waf" +DESC="The meta build system" + +MAKEDEPS="" +DEPS="python " + +PKG_VER=2.0.22 +SOURCE="https://waf.io/waf-$PKG_VER" + +package () { + install -Dm755 waf-$PKG_VER "$PKG_DEST"/usr/bin/waf +} |