diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-06-13 00:25:03 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-06-13 00:25:03 +0800 |
| commit | 239ced844ea434e623686094af3de168f90e4391 (patch) | |
| tree | 541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/core/musl/abuild | |
| parent | 3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff) | |
| download | alicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz alicelinux-239ced844ea434e623686094af3de168f90e4391.zip | |
repos updated
Diffstat (limited to 'repos/core/musl/abuild')
| -rw-r--r-- | repos/core/musl/abuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/repos/core/musl/abuild b/repos/core/musl/abuild new file mode 100644 index 00000000..201cbc58 --- /dev/null +++ b/repos/core/musl/abuild @@ -0,0 +1,42 @@ +name=musl +version=1.2.5 +release=1 +source="https://www.musl-libc.org/releases/musl-$version.tar.gz + getconf.c + getconf.1 + getent.c + getent.1 + iconv.c + tree.h + queue.h + cdefs.h + elfutils-0.190-relr.patch" +keep_static=1 + +build() { + ./configure \ + --prefix=/usr #\ + #--syslibdir=/usr/lib + make + make DESTDIR=$PKG install + + mkdir -p $PKG/usr/bin + ln -sf ../lib/libc.so $PKG/usr/bin/ldd + mkdir -p $PKG/sbin + echo "#!/bin/sh + /bin/true" > $PKG/sbin/ldconfig + chmod +x $PKG/sbin/ldconfig + + for i in getent getconf iconv; do + ${CC:-gcc} $CFLAGS $LDFLAGS -fpie $SRC/$i.c -o $PKG/usr/bin/$i + done + + mkdir -p $PKG/usr/share/man/man1 + install -m644 $SRC/getconf.1 $PKG/usr/share/man/man1 + #install -m644 $SRC/getent.1 $PKG/usr/share/man/man1 + + # bsdcompat headers + for h in tree.h queue.h cdefs.h; do + install -D $SRC/$h $PKG/usr/include/sys/ + done +} |