commit f79372e

chld  ·  2026-08-23 23:11:33 +0000 UTC
parent 92b96df
bash: init
3 files changed,  +35, -0
+0, -0
+6, -0
1@@ -0,0 +1,6 @@
2+name: bash
3+description: the GNU bash shell
4+license: GPL-3.0-or-later
5+upstream:
6+version: 5.3
7+maintainer: chld
+29, -0
 1@@ -0,0 +1,29 @@
 2+#!/bin/sh -ue
 3+NAME=bash
 4+VERSION=5.3
 5+RELEASE=1
 6+SOURCE="https://ftp.gnu.org/pub/gnu/${NAME}/${NAME}-${VERSION}.tar.gz"
 7+build(){
 8+        static_cc='cc -static'
 9+	CC="$static_cc" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' ./configure \
10+		--prefix=/ \
11+		--bindir=/bin \
12+		--sbindir=/bin \
13+		--libdir=/lib \
14+		--includedir=/include \
15+		--sysconfdir=/etc \
16+		--disable-lto \
17+		--without-gnu-ld \
18+		--disable-libunistring \
19+		--enable-dependency-tracking \
20+		--enable-static \
21+		--disable-libtool-loc \
22+		--enable-jit=no \
23+		--disable-nls \
24+		--enable-mini-gmp || die "configure failed"
25+
26+	gmake CC="$static_cc" PREFIX="$PREFIX" DESTDIR="$PKG" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' -j"$NPROC" || die "build failed" 
27+	gmake DESTDIR="$PKG" install || die "gmake install failed"
28+
29+}
30+. ${0%/*}/../../libsh/libdmake.sh