28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# Template file for 'musl-bootstrap'.
|
|
pkgname=musl-bootstrap
|
|
version=1.1.22
|
|
revision=1
|
|
lib32disabled=yes
|
|
wrksrc="musl-${version}"
|
|
build_style=configure
|
|
configure_args="--prefix=/usr/lib/musl"
|
|
make_build_args="ALL_TOOLS+=obj/musl-gcc ALL_TOOLS+=obj/musl-clang ALL_TOOLS+=obj/ld.musl-clang"
|
|
make_install_args="$make_build_args"
|
|
short_desc="The musl C library (bootstrap pkg)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.musl-libc.org/"
|
|
distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
|
|
checksum=8b0941a48d2f980fd7036cfbd24aa1d414f03d9a0652ecbd5ec5c7ff1bee29e3
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/
|
|
vmkdir usr/bin
|
|
# cc is an alternative and might actually be clang
|
|
sed -i s/REALGCC:-cc/REALGCC:-gcc/ ${DESTDIR}/usr/lib/musl/bin/musl-gcc
|
|
ln -sfr ${DESTDIR}/usr/lib/musl/bin/musl-gcc ${DESTDIR}/usr/bin/musl-gcc
|
|
ln -sfr ${DESTDIR}/usr/lib/musl/bin/musl-clang ${DESTDIR}/usr/bin/musl-clang
|
|
ln -sfr ${DESTDIR}/usr/lib/musl/bin/ld.musl-clang ${DESTDIR}/usr/bin/ld.musl-clang
|
|
vlicense COPYRIGHT
|
|
}
|