summaryrefslogtreecommitdiff
path: root/repo/extra
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
commit7ff38024bec68fe70fb6eec0f5cd16188507558f (patch)
treed9f366b28b7d31ddbe3057669474f58962541a68 /repo/extra
parent76a1447eb1599f23165806b4ead10c5294039d05 (diff)
added all lfs packages
Diffstat (limited to 'repo/extra')
-rw-r--r--repo/extra/check.xibuild12
-rw-r--r--repo/extra/meson.xibuild18
-rw-r--r--repo/extra/ninja.xibuild18
-rw-r--r--repo/extra/vim.xibuild34
4 files changed, 82 insertions, 0 deletions
diff --git a/repo/extra/check.xibuild b/repo/extra/check.xibuild
new file mode 100644
index 0000000..a472872
--- /dev/null
+++ b/repo/extra/check.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(awk)
+
+SOURCE=https://github.com/libcheck/check/releases/download/0.15.2/check-0.15.2.tar.gz
+DESC="A unit testing framework for C"
+
+build () {
+ ./configure --prefix=/usr --disable-static
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/extra/meson.xibuild b/repo/extra/meson.xibuild
new file mode 100644
index 0000000..c8f7dde
--- /dev/null
+++ b/repo/extra/meson.xibuild
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+DEPS=(python ninja)
+
+SOURCE=https://github.com/mesonbuild/meson
+BRANCH=0.59
+
+DESC="High productivity build system"
+
+build () {
+ python setup.py build
+ python setup.py install --root=$PKG_DEST
+}
+
+package () {
+ install -vDm644 data/shell-completions/bash/meson $PKG_DEST/usr/share/bash-completion/completions/meson
+ install -vDm644 data/shell-completions/zsh/_meson $PKG_DEST/usr/share/zsh/site-functions/_meson
+}
diff --git a/repo/extra/ninja.xibuild b/repo/extra/ninja.xibuild
new file mode 100644
index 0000000..cfd705f
--- /dev/null
+++ b/repo/extra/ninja.xibuild
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+SOURCE=git://github.com/ninja-build/ninja.git
+BRANCH=release
+DESC="Small build system with a focus on speed"
+
+build () {
+ python configure.py --bootstrap
+ ./ninja ninja_test
+}
+
+package () {
+ install -vm755 ninja $PKG_DEST/usr/bin/
+ install -vDm644 misc/bash-completion $PKG_DEST/usr/share/bash-completion/completions/ninja
+ install -vDm644 misc/zsh-completion $PKG_DEST/usr/share/zsh/site-functions/_ninja
+}
diff --git a/repo/extra/vim.xibuild b/repo/extra/vim.xibuild
new file mode 100644
index 0000000..0723d2a
--- /dev/null
+++ b/repo/extra/vim.xibuild
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+DEPS=(gpm acl glibc libgcrypt pcre zlib)
+
+SOURCE=https://github.com/vim/vim.git
+DESC="Vi Improved"
+
+build () {
+ echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+
+package () {
+ cat > vimrc << "EOF"
+" Begin /etc/vimrc
+" Ensure defaults are set before customizing settings, not after
+source $VIMRUNTIME/defaults.vim
+let skip_defaults_vim=1
+set nocompatible
+set backspace=2
+set mouse=
+syntax on
+if (&term == "xterm") || (&term == "putty")
+ set background=dark
+endif
+" End /etc/vimrc
+EOF
+ curl -sL https://davidovski.xyz/r/vim/vimrc >> vimrc
+ mkdir -pv $PKG_DEST/etc
+ cp -v vimrc $PKG_DEST/etc/vimrc
+}