# musl - musl libc, the small alternative to glibc
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=musl
version=1.2.5
release=1
desc="musl libc, the small alternative to glibc"
url="https://musl.libc.org/"
license="MIT"
depend="linux-headers"
makedepend=""
source="https://musl.libc.org/releases/musl-1.2.5.tar.gz"
sha256="SKIP"

build() {
	cd "musl-1.2.5"
	# /usr/musl, not /usr - this has to sit next to glibc without
	# overwriting its libc.so/crt files/headers. Anything built against
	# this musl targets it explicitly through the musl-gcc wrapper the
	# install below produces at /usr/musl/bin/musl-gcc.
	./configure --prefix=/usr/musl
	make -j"$JOBS"
}

package() {
	cd "musl-1.2.5"
	make DESTDIR="$pkgdir" install
}
