# SliTaz package receipt. PACKAGE="musl-libc" VERSION="1.2.3" CATEGORY="development" SHORT_DESC="A lightweight, fast, simple, free libc." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://musl.libc.org/" REPOLOGY="musl" SOURCE="musl" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}releases/$TARBALL" DEPENDS="" BUILD_DEPENDS="" TARGET="i386" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/snapshot/d;/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr/share/musl \ --exec-prefix=/usr/share/musl \ --target=$TARGET \ $CONFIGURE_ARGS make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/bin mkdir -p $fs/etc mkdir -p $fs/usr/share/musl/lib cp -a $install/lib $fs ln -s /usr/share/musl/lib/libc.so $fs/bin/ldd-musl cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$TARGET.path }