alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

abuild (1027B)


      1 name=musl
      2 version=1.2.5
      3 release=3
      4 source="https://www.musl-libc.org/releases/musl-$version.tar.gz
      5 	getconf.c
      6 	getconf.1
      7 	getent.c
      8 	getent.1
      9 	iconv.c
     10 	tree.h
     11 	queue.h
     12 	cdefs.h
     13 	elfutils-0.190-relr.patch
     14 	default-locpath.patch
     15 	0001-iconv-fix-erroneous-input-validation-in-EUC-KR-decod.patch
     16 	0002-iconv-harden-UTF-8-output-code-path-against-input-de.patch"
     17 keep_static=1
     18 
     19 build() {
     20 	./configure \
     21 	        --prefix=/usr #\
     22 	        #--syslibdir=/usr/lib
     23 	make
     24 	make DESTDIR=$PKG install
     25 	
     26 	mkdir -p $PKG/usr/bin
     27 	ln -sf ../lib/libc.so $PKG/usr/bin/ldd
     28 	mkdir -p $PKG/sbin
     29 	echo "#!/bin/sh
     30 	/bin/true" > $PKG/sbin/ldconfig
     31 	chmod +x $PKG/sbin/ldconfig
     32 	
     33 	for i in getent getconf iconv; do
     34 	        ${CC:-gcc} $CFLAGS $LDFLAGS -fpie $SRC/$i.c -o $PKG/usr/bin/$i
     35 	done
     36 	
     37 	mkdir -p $PKG/usr/share/man/man1
     38 	install -m644 $SRC/getconf.1 $PKG/usr/share/man/man1
     39 	#install -m644 $SRC/getent.1 $PKG/usr/share/man/man1
     40 	
     41 	# bsdcompat headers
     42 	for h in tree.h queue.h cdefs.h; do
     43 	        install -D $SRC/$h $PKG/usr/include/sys/
     44 	done
     45 }