diff options
Diffstat (limited to 'repo/devel')
-rw-r--r-- | repo/devel/asciidoc.xibuild | 15 | ||||
-rw-r--r-- | repo/devel/autoconf.xibuild | 13 | ||||
-rw-r--r-- | repo/devel/automake.xibuild | 18 | ||||
-rw-r--r-- | repo/devel/bc.xibuild | 15 | ||||
-rw-r--r-- | repo/devel/bison.xibuild | 13 | ||||
-rw-r--r-- | repo/devel/check.xibuild | 12 | ||||
-rw-r--r-- | repo/devel/cmake.xibuild | 12 | ||||
-rw-r--r-- | repo/devel/dejagnu.xibuild | 23 | ||||
-rw-r--r-- | repo/devel/distcc.xibuild | 18 | ||||
-rw-r--r-- | repo/devel/expect.xibuild | 20 | ||||
-rw-r--r-- | repo/devel/flex.xibuild | 19 | ||||
-rw-r--r-- | repo/devel/gcc.xibuild | 78 | ||||
-rw-r--r-- | repo/devel/git.xibuild | 17 | ||||
-rw-r--r-- | repo/devel/help2man.xibuild | 14 | ||||
-rw-r--r-- | repo/devel/m4.xibuild | 14 | ||||
-rw-r--r-- | repo/devel/make.xibuild | 12 | ||||
-rw-r--r-- | repo/devel/meson.xibuild | 18 | ||||
-rw-r--r-- | repo/devel/mpc.xibuild | 20 | ||||
-rw-r--r-- | repo/devel/ninja.xibuild | 18 | ||||
-rw-r--r-- | repo/devel/patch.xibuild | 12 | ||||
-rw-r--r-- | repo/devel/pkg-config.xibuild | 16 | ||||
-rw-r--r-- | repo/devel/texinfo.xibuild | 17 | ||||
-rw-r--r-- | repo/devel/xmlto.xibuild | 13 |
23 files changed, 427 insertions, 0 deletions
diff --git a/repo/devel/asciidoc.xibuild b/repo/devel/asciidoc.xibuild new file mode 100644 index 0000000..47b51a0 --- /dev/null +++ b/repo/devel/asciidoc.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(python libxslt docbook-xsl) + +SOURCE=https://github.com/asciidoc-py/asciidoc-py/releases/download/10.1.1/asciidoc-10.1.1.tar.gz +DESC="Text document format for short documents, articles, books and UNIX man pages" + + + +package () { + pip install -t $PKG_DEST/usr/lib/python3.10/site-packages/ asciidoc + mkdir -pv $PKG_DEST/usr/bin + ln -s /usr/lib/python3.10/site-packages/bin/asciidoc $PKG_DEST/usr/bin/asciidoc + ln -s /usr/lib/python3.10/site-packages/bin/a2x $PKG_DEST/usr/bin/a2x +} diff --git a/repo/devel/autoconf.xibuild b/repo/devel/autoconf.xibuild new file mode 100644 index 0000000..b61179f --- /dev/null +++ b/repo/devel/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/devel/automake.xibuild b/repo/devel/automake.xibuild new file mode 100644 index 0000000..f83fc62 --- /dev/null +++ b/repo/devel/automake.xibuild @@ -0,0 +1,18 @@ +#!/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 +} + +package () { + # backwards compatibility? + ln -s /usr/bin/aclocal $PKG_DEST/usr/bin/aclocal-1.15 +} diff --git a/repo/devel/bc.xibuild b/repo/devel/bc.xibuild new file mode 100644 index 0000000..160b6f5 --- /dev/null +++ b/repo/devel/bc.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(readline) + +SOURCE=https://github.com/gavinhoward/bc/releases/download/5.2.1/bc-5.2.1.tar.xz +DESC="An arbitrary precision numeric processing language" + +build () { + CC=gcc ./configure --prefix=/usr -G -O3 + make + make test + make DESTDIR=$PKG_DEST install +} + + diff --git a/repo/devel/bison.xibuild b/repo/devel/bison.xibuild new file mode 100644 index 0000000..556bf16 --- /dev/null +++ b/repo/devel/bison.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc m4 sh) + +SOURCE=https://ftp.gnu.org/gnu/bison/bison-3.8.1.tar.xz +DESC="The GNU general-purpose parser generator" + +build () { + ./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.8.1 + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/check.xibuild b/repo/devel/check.xibuild new file mode 100644 index 0000000..a472872 --- /dev/null +++ b/repo/devel/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/devel/cmake.xibuild b/repo/devel/cmake.xibuild new file mode 100644 index 0000000..1b9959e --- /dev/null +++ b/repo/devel/cmake.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(curl libarchive jsoncpp libuv rhash) + +SOURCE=https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1.tar.gz +DESC="A cross-platform open-source make system" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/dejagnu.xibuild b/repo/devel/dejagnu.xibuild new file mode 100644 index 0000000..21a35a4 --- /dev/null +++ b/repo/devel/dejagnu.xibuild @@ -0,0 +1,23 @@ +#!/bin/bash + +DEPS=(sh expect) + +SOURCE=https://ftp.gnu.org/gnu/dejagnu/dejagnu-1.6.3.tar.gz +DESC="a framework for running test suites on GNU tools" + +build () { + mkdir -v build + cd build + + ../configure --prefix=/usr + + makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi + makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi + + make DESTDIR=$PKG_DEST install + + install -v -dm755 $PKG_DEST/usr/share/doc/dejagnu-1.6.3 + install -v -m644 doc/dejagnu.{html,txt} $PKG_DEST/usr/share/doc/dejagnu-1.6.3 +} + + diff --git a/repo/devel/distcc.xibuild b/repo/devel/distcc.xibuild new file mode 100644 index 0000000..8d4039b --- /dev/null +++ b/repo/devel/distcc.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(gcc python) + +SOURCE=https://github.com/distcc/distcc/releases/download/v3.4/distcc-3.4.tar.gz + +DESC="Distributed compiler for C, C++ and Objective-C" + + +build () { + ./configure --prefix=/usr + make +} + + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/expect.xibuild b/repo/devel/expect.xibuild new file mode 100644 index 0000000..cb5b6f6 --- /dev/null +++ b/repo/devel/expect.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(tcl) + +SOURCE=https://sourceforge.net/projects/expect/files/Expect/5.45.4/expect5.45.4.tar.gz/download +DESC="tools for automating interactive applications" + +build () { + # note: --with-tcl, we might want to make a way to use the tcl that we've compiled in another package + ./configure --prefix=/usr --with-tcl=/usr/lib --enable-shared --mandir=/usr/share/man --with-tclinclude=/usr/include + make + make test + make DESTDIR=$PKG_DEST install +} + +package () { + cp libexpect*.so $PKG_DEST/usr/lib +} + + diff --git a/repo/devel/flex.xibuild b/repo/devel/flex.xibuild new file mode 100644 index 0000000..f5291cc --- /dev/null +++ b/repo/devel/flex.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc m4 sh) + +SOURCE=https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz +DESC="a utility for generating programs that recognize patterns in text" + +build () { + ./configure --prefix=/usr --docdir=/usr/share/doc/flex --disable-static + make + make check + make DESTDIR=$PKG_DEST install +} + +package () { + ln -v /usr/bin/flex $PKG_DEST/usr/bin/lex +} + + diff --git a/repo/devel/gcc.xibuild b/repo/devel/gcc.xibuild new file mode 100644 index 0000000..ab9830d --- /dev/null +++ b/repo/devel/gcc.xibuild @@ -0,0 +1,78 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz + +DESC="The GNU Compiler Collection - C and C++ frontends" + + +build () { + #fix an issue breaking libasan.a + + sed -e '/static.*SIGSTKSZ/d' \ + -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \ + -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp + + case $(uname -m) in + x86_64) + sed -e '/m64=/s/lib64/lib/' \ + -i.orig gcc/config/i386/t-linux64 + ;; + esac + + + mkdir -v build + cd build + + ../configure --prefix=/usr \ + LD=ld \ + --enable-languages=c,c++ \ + --disable-multilib \ + --disable-bootstrap \ + --with-system-zlib + + make + + ulimit -s 32768 + + if id -u tester; then + chown -Rv tester . + su tester -c "PATH=$PATH make $MAKEFLAGS -k check" + ../contrib/test_summary | grep -A7 Summ + fi + +} + + +package () { + make DESTDIR=$PKG_DEST install + + rm -rf $PKG_DEST/usr/lib/gcc/$(gcc -dumpmachine)/11.2.0/include-fixed/bits/ + + chown -v -R root:root \ + $PKG_DEST/usr/lib/gcc/*linux-gnu/11.2.0/include{,-fixed} + ln -sv cpp $PKG_DEST/usr/lib/cpp + + ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/11.2.0/liblto_plugin.so \ + $PKG_DEST/usr/lib/bfd-plugins/ + + + # sanity checks + echo 'int main(){}' > dummy.c + cc dummy.c -v -Wl,--verbose &> dummy.log + readelf -l a.out | grep ': /lib' + + grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log + grep -B4 '^ /usr/include' dummy.log + grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' + grep "/lib.*/libc.so.6 " dummy.log + grep found dummy.log + + # move a misplaced file + mkdir -pv $PKG_DEST/usr/share/gdb/auto-load/usr/lib + mv -v $PKG_DEST/usr/lib/*gdb.py $PKG_DEST/usr/share/gdb/auto-load/usr/lib + + # set gcc as the default c compiler + ln -s gcc $PKG_DEST/usr/bin/cc +} diff --git a/repo/devel/git.xibuild b/repo/devel/git.xibuild new file mode 100644 index 0000000..7f8d277 --- /dev/null +++ b/repo/devel/git.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(curl perl openssl pcre2 grep shadow zlib) + +SOURCE=https://www.kernel.org/pub/software/scm/git/git-2.34.1.tar.xz +DESC="The free and open source, distributed version control system" + +build () { + ./configure --prefix=/usr \ + --with-gitconfig=/etc/gitconfig \ + --with-python=python3 && + make + #make man + make perllibdir=/usr/lib/perl5/5.34/site_perl DESTDIR=$PKG_DEST install + #make DESTDIR=$PKG_DEST install-man + +} diff --git a/repo/devel/help2man.xibuild b/repo/devel/help2man.xibuild new file mode 100644 index 0000000..a8d4e47 --- /dev/null +++ b/repo/devel/help2man.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(sh) + +SOURCE=http://mirror.koddos.net/gnu/help2man/help2man-1.48.5.tar.xz +DESC="A tool for automatically generating simple manual pages from program output" + + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/devel/m4.xibuild b/repo/devel/m4.xibuild new file mode 100644 index 0000000..409c9a3 --- /dev/null +++ b/repo/devel/m4.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc bash) + +SOURCE=https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz +DESC="The gnu m4 macro processor" + + +build () { + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/make.xibuild b/repo/devel/make.xibuild new file mode 100644 index 0000000..bb057ee --- /dev/null +++ b/repo/devel/make.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/make/make-4.3.tar.gz +DESC="GNU make utility" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/meson.xibuild b/repo/devel/meson.xibuild new file mode 100644 index 0000000..c8f7dde --- /dev/null +++ b/repo/devel/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/devel/mpc.xibuild b/repo/devel/mpc.xibuild new file mode 100644 index 0000000..5fd5898 --- /dev/null +++ b/repo/devel/mpc.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(mpfr) + +SOURCE=http://www.multiprecision.org/downloads/mpc-1.2.0.tar.gz +DESC="Library for the arithmetic of complex numbers with arbitrarily high precision" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/mpc-1.2.0 + + make + make html + + make check +} + +package () { + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} diff --git a/repo/devel/ninja.xibuild b/repo/devel/ninja.xibuild new file mode 100644 index 0000000..cfd705f --- /dev/null +++ b/repo/devel/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/devel/patch.xibuild b/repo/devel/patch.xibuild new file mode 100644 index 0000000..728fc1d --- /dev/null +++ b/repo/devel/patch.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc attr) + +SOURCE=https://ftp.gnu.org/gnu/patch/patch-2.7.tar.xz +DESC="A utility to apply patch files to a file" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/pkg-config.xibuild b/repo/devel/pkg-config.xibuild new file mode 100644 index 0000000..9f1e3f4 --- /dev/null +++ b/repo/devel/pkg-config.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc sh) + +SOURCE=https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz +DESC="Package compiler and linker metadata toolkit" + +build () { + ./configure --prefix=/usr \ + --with-internal-glib \ + --disable-host-tool \ + --docdir=/usr/share/doc/pkg-config-0.29.2 + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/devel/texinfo.xibuild b/repo/devel/texinfo.xibuild new file mode 100644 index 0000000..0bcbb29 --- /dev/null +++ b/repo/devel/texinfo.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(ncurses gzip perl sh) + +SOURCE=https://ftp.gnu.org/gnu/texinfo/texinfo-6.8.tar.xz +DESC="GNU documentation system for reading, writing and converting info pages" + +build () { + # fix an issue when building with glibc-2.34 or later + sed -e 's/__attribute_nonnull__/__nonnull/' \ + -i gnulib/lib/malloc/dynarray-skeleton.c + + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install + make TEXMF=$PKG_DEST/usr/share/texmf install-tex +} diff --git a/repo/devel/xmlto.xibuild b/repo/devel/xmlto.xibuild new file mode 100644 index 0000000..a162415 --- /dev/null +++ b/repo/devel/xmlto.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(libxslt) + +SOURCE=https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2 +DESC="Convert xml to many other formats" + + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} |