summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 20:32:41 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 20:32:41 +0100
commitbeb0e949f6189884cd31fdf0f95e5d35be6a2a93 (patch)
tree7edae8055d72e2b7afae4d333302f61d7090b110 /repo
parent0cb5ed4e60d3453c0b2ee9a153afa96c9bd3dd0c (diff)
added more core packages
Diffstat (limited to 'repo')
-rw-r--r--repo/core/autoconf.xibuild13
-rw-r--r--repo/core/automake.xibuild13
-rw-r--r--repo/core/expat.xibuild16
-rw-r--r--repo/core/gdbm.xibuild14
-rw-r--r--repo/core/gperf.xibuild14
-rw-r--r--repo/core/inetutils.xibuild26
-rw-r--r--repo/core/intltool.xibuild14
-rw-r--r--repo/core/kmod.xibuild28
-rw-r--r--repo/core/less.xibuild12
-rw-r--r--repo/core/perl-xml-parser.xibuild13
-rw-r--r--repo/core/perl.xibuild31
11 files changed, 194 insertions, 0 deletions
diff --git a/repo/core/autoconf.xibuild b/repo/core/autoconf.xibuild
new file mode 100644
index 0000000..b61179f
--- /dev/null
+++ b/repo/core/autoconf.xibuild
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DEPS=(awk m4 diffutils perl sh)
+
+SOURCE=https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz
+DESC="GNU programs for producing shell scripts that can automatically configure source code"
+
+build () {
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+ make check
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/automake.xibuild b/repo/core/automake.xibuild
new file mode 100644
index 0000000..eaccbae
--- /dev/null
+++ b/repo/core/automake.xibuild
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DEPS=(perl bash)
+
+SOURCE=https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz
+DESC="A GNU tool for automatically creating Makefiles"
+
+build () {
+ ./configure --prefix=/usr -docdir=/usr/share/doc/automake-1.16.5
+ make
+ make -j4 check
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/expat.xibuild b/repo/core/expat.xibuild
new file mode 100644
index 0000000..bf9c49f
--- /dev/null
+++ b/repo/core/expat.xibuild
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+SOURCE=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.xz
+DESC="An XML parser library"
+
+build () {
+ ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/expat-2.4.1
+ make
+ make check
+
+ make DESTDIR=$PKG_DEST install
+
+ install -v -m644 doc/*{.html,png,css} $PKG_DEST/usr/share/doc/expat-2.4.1
+}
diff --git a/repo/core/gdbm.xibuild b/repo/core/gdbm.xibuild
new file mode 100644
index 0000000..ddeecca
--- /dev/null
+++ b/repo/core/gdbm.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(glibc sh readline)
+
+SOURCE=https://ftp.gnu.org/gnu/gdbm/gdbm-1.21.tar.gz
+DESC="GNU database library"
+
+build () {
+ ./configure --prefix=/usr --disable-static --enable-libgdm-compat
+ make
+ make -k check
+
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/gperf.xibuild b/repo/core/gperf.xibuild
new file mode 100644
index 0000000..a5d5556
--- /dev/null
+++ b/repo/core/gperf.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+SOURCE=http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
+DESC="Perfect hash functoin generator"
+
+build () {
+ ./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1
+ make
+ make -j1 check
+
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/inetutils.xibuild b/repo/core/inetutils.xibuild
new file mode 100644
index 0000000..cbea56d
--- /dev/null
+++ b/repo/core/inetutils.xibuild
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+DEPS=(pam libcap readline ncurses libxcrypt)
+
+SOURCE=https://ftp.gnu.org/gnu/inetutils/inetutils-2.2.tar.xz
+DESC="A collection of common programs for basic networking"
+
+build () {
+ ./configure --prefix=/usr \
+ --bindir=/usr/bin \
+ --localstatedir=/var \
+ --disable-logger \
+ --disable-whois \
+ --disable-rcp \
+ --disable-rexec \
+ --disable-rlogin \
+ --disable-rsh \
+ make
+ make check
+
+ make DESTDIR=$PKG_DEST install
+}
+
+package () {
+ mv -v /usr/{,s}bin/ifconfig
+}
diff --git a/repo/core/intltool.xibuild b/repo/core/intltool.xibuild
new file mode 100644
index 0000000..ec0a774
--- /dev/null
+++ b/repo/core/intltool.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(perl-xml-parser)
+
+SOURCE=https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
+DESC="The internationalization tool collection"
+
+build () {
+ ./configure --prefix=/usr
+ make
+ make check
+ make DESTDIR=$PKG_DEST install
+ install -v -Dm644 doc/I18N-HOWTO $PKG_DEST/usr/share/doc/intltool-0.51.0/I18N-HOWTO
+}
diff --git a/repo/core/kmod.xibuild b/repo/core/kmod.xibuild
new file mode 100644
index 0000000..01cc935
--- /dev/null
+++ b/repo/core/kmod.xibuild
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+DEPS=(glibc zlib openssl xz zstd)
+
+SOURCE=https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
+DESC="Libraries and utilities for managing kernel modules"
+
+build () {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-xz \
+ --with-zstd \
+ --with-zlib
+
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+package () {
+ mkdir -p /usr/sbin
+ mkdir -p /usr/bin
+
+ for target in depmod insmod modinfo modprobe rmmod; do
+ ln -sfv ../bin/kmod $PKG_DERT/usr/sbin/$target
+ done
+
+ ln -sfv kmod $PKG_DEST/usr/bin/lsmod
+}
diff --git a/repo/core/less.xibuild b/repo/core/less.xibuild
new file mode 100644
index 0000000..a2bb435
--- /dev/null
+++ b/repo/core/less.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(glibc ncurses pcre2)
+
+SOURCE=https://www.greenwoodsoftware.com/less/less-590.tar.gz
+DESC="A terminal based program for viewing text files"
+
+build () {
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/perl-xml-parser.xibuild b/repo/core/perl-xml-parser.xibuild
new file mode 100644
index 0000000..d4b9682
--- /dev/null
+++ b/repo/core/perl-xml-parser.xibuild
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DEPS=(perl expat)
+
+SOURCE=https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz
+DESC="A perl interface for the expat XML parser"
+
+build () {
+ perl Makefile.PL
+ make
+ make test
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/core/perl.xibuild b/repo/core/perl.xibuild
new file mode 100644
index 0000000..d52ada9
--- /dev/null
+++ b/repo/core/perl.xibuild
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+DEPS=(gdbm glibc libxcrypt)
+
+SOURCE=https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
+DESC="The Practical Extraction and Report Language"
+
+build () {
+ export BUILD_ZLIB=False
+ export BUILD_BZIP2=0
+
+ sh Configure -des \
+ -Dprefix=/usr \
+ -Dvendorprefix=/usr \
+ -Dprivlib=/usr/lib/perl5/5.34/core_perl \
+ -Darchlib=/usr/lib/perl5/5.34/core_perl \
+ -Dsitelib=/usr/lib/perl5/5.34/site_perl \
+ -Dsitearch=/usr/lib/perl5/5.34/site_perl \
+ -Dvendorlib=/usr/lib/perl5/5.34/vendor_perl \
+ -Dvendorarch=/usr/lib/perl5/5.34/vendor_perl \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dpager="/usr/bin/less -isR" \
+ -Duseshrplib \
+ -Dusethreads
+
+ make
+ make test
+ make DESTDIR=$PKG_DEST install
+ unset BUILD_ZLIB BUILD_BZIP2
+}