void-packages/srcpkgs/musl/template
2014-06-07 05:46:19 +02:00

26 lines
732 B
Text

# Template file for 'musl'.
pkgname=musl
version=1.1.2
revision=1
build_style=gnu-configure
configure_args="--prefix=/usr --disable-gcc-wrapper"
conflicts="glibc>=0"
short_desc="The musl C library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="http://www.musl-libc.org/"
distfiles="http://www.musl-libc.org/releases/musl-${version}.tar.gz"
checksum=dac94112b9a22d2657cd3f36ca0d62ee1eb10707a22bfc97d5746147ef92852b
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
do_install() {
# Move everything to /usr.
vmkdir usr/lib
ln -sfr ${DESTDIR}/usr/lib ${DESTDIR}/lib
make DESTDIR=${DESTDIR} install
rm ${DESTDIR}/lib
# provide ldd
vmkdir usr/bin
ln -s /usr/lib/libc.so ${DESTDIR}/usr/bin/ldd
}