commit 704b9fc

chld  ·  2026-09-07 21:23:35 +0000 UTC
parent 003df28
gettext: init
2 files changed,  +32, -0
+6, -0
1@@ -0,0 +1,6 @@
2+name: nettle
3+description: no idea
4+license: GPL-3.0-or-later
5+upstream:
6+version: 4.0
7+maintainer: 
+26, -0
 1@@ -0,0 +1,26 @@
 2+#!/bin/sh -ue
 3+NAME=gettext
 4+VERSION=1.0
 5+RELEASE=1
 6+SOURCE="https://ftp.gnu.org/gnu/${NAME}/${NAME}-${VERSION}.tar.gz"
 7+
 8+build(){
 9+    CFLAGS='-static' LDFLAGS='-static' DESTDIR="$PKG" PREFIX="$PREFIX" ./configure --prefix="$PREFIX" \
10+		--bindir=/bin \
11+		--sbindir=/bin \
12+		--libdir=/lib \
13+		--without-p11-kit \
14+		--disable-nls \
15+		--includedir=/include \
16+		--sysconfdir=/etc \
17+		--enable-static \
18+		--disable-shared \
19+		--enable-mini-gmp \
20+		--disable-largefile || die "configure failed"
21+    
22+    sed -i 's/gcc/gcc -static/g' config.make
23+    gmake CFLAGS='-static' LDFLAGS='-static' PREFIX="$PREFIX" DESTDIR="$PKG" || die "make failed"
24+    gmake CFLAGS='-static' LDFLAGS='-static' PREFIX="$PREFIX" DESTDIR="$PKG" install || die "install failed"
25+}
26+
27+. ${0%/*}/../../libsh/libdmake.sh