void-packages/srcpkgs/musl-bootstrap/template

30 lines
1008 B
Bash

# Template file for 'musl-bootstrap'
pkgname=musl-bootstrap
version=1.1.24
revision=3
archs="~*-musl"
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="Musl C library (bootstrap package)"
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=1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
lib32disabled=yes
case "$XBPS_TARGET_MACHINE" in
ppc*) CFLAGS="-mlong-double-64";;
esac
post_install() {
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/
vmkdir usr/bin
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
}