mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
d7adf09a43
* update(slirp) * update(poppler-data) * update(doxygen) * update(xcb) * update(sm) * update(xdmcp) * update(ice) * update(util-macros) * update(xtrans) * update(xmu) * update(xt) * update(xau) * update(xrender) * update(x11) * update(xcb-proto) * update(xpm) * update(xaw) * update(xorg-protocol) * update(exts) * update(lame) * update(nmap) * update(cairo) * update(unicode) * update(gts) * update(vim) * update(libtiff) * update(lua) * comment(bpb) * update(giflib) * update(gdk-pixbuf) * update(gobj-intro) * update(libcap2) * update(gnuplot) * update(dav1d) * update(wumpus) * update(librist) * update(subversion) * comment(jbig2dec) * update(moreutils) * update(eigen) * update(ogg) * update(musl) * update(libtool) * update(isl) * update(coreutils) * update(wget) * update(gmp) * update(libiconv) * update(stow) * update(sed) * update(gperf) * update(libunistring) * update(grep) * update(patch) * update(tar) * update(autoconf) * update(libgpg-error) * update(automake) * update(libksba) * update(npth) * update(libgcrypt) * update(libidn) * update(libassuan) * update(gnupg) * update(libtasn1) * update(ncdu) * update(freexl) * update(nasm) * update(ffmpeg) * update(libsodium) * update(mpg123) * update(freetype) * update(dnsmasq) * update(postgres) * update(xz) * update(docutils) * update(aom) * update(libssh) * update(gitlab-cli) * update(watch) * update(tree) * update(c-ares) * update(mpdecimal) * update(lzo) * update(graphviz) * update(nano) * update(yasm) * update(expect) * update(pcre) * update(file) * update(shared-mime-info) * use `gitlab:` builtin
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
distributable:
|
|
url: https://git.musl-libc.org/cgit/musl/snapshot/musl-{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://git.musl-libc.org/cgit/musl/refs/tags
|
|
match: /musl-\d+\.\d+\.\d+\.tar\.gz/
|
|
strip:
|
|
- /musl-/
|
|
- /.tar.gz/
|
|
|
|
relocatable: true
|
|
|
|
platforms: linux
|
|
|
|
provides:
|
|
- bin/ld.musl-clang
|
|
- bin/musl-clang
|
|
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
./configure --prefix={{ prefix }} --syslibdir={{ prefix }}/lib
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
make install
|
|
|
|
ln -sf libc.so {{prefix}}/lib/ld-musl-{{hw.arch}}.so.1
|
|
|
|
# fix script paths; might be a better way
|
|
#FIXME probably: dynamic linker causes segfaults
|
|
sed -i.bak \
|
|
-e 's/-dynamic-linker "\$ldso"//' \
|
|
-e 's/^sflags=$/sflags="-static"/' \
|
|
-e 's/^libc=".*/libc="$(dirname $(dirname $(which ld.musl-clang)))"/' \
|
|
-e 's#^libc_inc=".*#libc_inc="$libc/include"#' \
|
|
-e 's#^libc_lib=".*#libc_lib="$libc/lib"#' \
|
|
{{prefix}}/bin/musl-clang \
|
|
{{prefix}}/bin/ld.musl-clang
|
|
env:
|
|
CC: clang
|
|
|
|
test:
|
|
fixture: |
|
|
#include <stdio.h>
|
|
int main() {
|
|
printf("Hello World!");
|
|
return 0;
|
|
}
|
|
script: |
|
|
mv $FIXTURE $FIXTURE.c
|
|
musl-clang $FIXTURE.c
|
|
test "$(./a.out)" = "Hello World!"
|