void-packages/srcpkgs/musl-bootstrap/template

22 lines
707 B
Bash

# Template file for 'musl-bootstrap'.
pkgname=musl-bootstrap
version=1.1.12
revision=1
lib32disabled=yes
wrksrc="musl-${version}"
build_style=configure
configure_args="--prefix=/usr/lib/musl"
short_desc="The musl C library (bootstrap pkg)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://www.musl-libc.org/"
distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
checksum=720b83c7e276b4b679c0bffe9509340d5f81fd601508e607e708177df0d31c0e
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
}