summaryrefslogtreecommitdiff
path: root/repo/devel
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-03 01:06:29 +0000
committerdavidovski <david@davidovski.xyz>2022-02-03 01:06:29 +0000
commitd0f791c604ad50304e821ac0aa98a183c7be9890 (patch)
treed8b900b2e01243835d0d983348a3dc8adbd57f78 /repo/devel
parent5f6bd1078b20823e7382ade77e34d65e9c365772 (diff)
added lvm and autoconf for js78 and polkit
Diffstat (limited to 'repo/devel')
-rw-r--r--repo/devel/autoconf2.13.xibuild30
-rw-r--r--repo/devel/llvm.xibuild35
2 files changed, 65 insertions, 0 deletions
diff --git a/repo/devel/autoconf2.13.xibuild b/repo/devel/autoconf2.13.xibuild
new file mode 100644
index 0000000..b164c16
--- /dev/null
+++ b/repo/devel/autoconf2.13.xibuild
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+MAKEDEPS=(make)
+DEPS=(perl)
+
+PKG_VER=2.13
+SOURCE=https://ftp.gnu.org/gnu/autoconf/autoconf-$PKG_VER.tar.gz
+ADDITIONAL=(
+ https://www.linuxfromscratch.org/patches/blfs/svn/autoconf-$PKG_VER-consolidated_fixes-1.patch
+ )
+
+DESC="GNU programs for producing shell scripts that can automatically configure source code, legacy $PKG_VER version"
+
+prepare() {
+ patch -Np1 -i autoconf-2.13-consolidated_fixes-1.patch &&
+ mv -v autoconf.texi autoconf213.texi &&
+ rm -v autoconf.info
+
+}
+
+build () {
+ ./configure --prefix=/usr --program-suffix=$PKG_VER &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ install -v -m644 autoconf213.info $PKG_DEST/usr/share/info &&
+ install-info --info-dir=$PKG_DEST/usr/share/info autoconf213.info
+}
diff --git a/repo/devel/llvm.xibuild b/repo/devel/llvm.xibuild
new file mode 100644
index 0000000..0147a69
--- /dev/null
+++ b/repo/devel/llvm.xibuild
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+MAKEDEPS=(make ninja cmake libedit libffi libxml2 ncurses python)
+DEPS=()
+
+PKG_VER=13.0.0
+SOURCE=https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/llvm-$PKG_VER.src.tar.xz
+DESC="Collection of modular and reusable compiler and toolchain technologies"
+
+package () {
+ grep -rl '#!.*python' | xargs sed -i '1s/python$/python3/'
+}
+
+build () {
+ mkdir -v build &&
+ cd build &&
+
+ CC=gcc CXX=g++ \
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_ENABLE_FFI=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_ENABLE_RTTI=ON \
+ -DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
+ -DLLVM_BUILD_TESTS=ON \
+ -DLLVM_BINUTILS_INCDIR=/usr/include \
+ -Wno-dev -G Ninja .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+
+}