wok-current annotate musl-libc/receipt @ rev 13283
Add musl-libc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 24 17:34:07 2012 +0200 (2012-08-24) |
parents | |
children | 9beb316a5167 |
rev | line source |
---|---|
pascal@13283 | 1 # SliTaz package receipt. |
pascal@13283 | 2 |
pascal@13283 | 3 PACKAGE="musl-libc" |
pascal@13283 | 4 SOURCE="musl" |
pascal@13283 | 5 VERSION="0.9.4" |
pascal@13283 | 6 CATEGORY="development" |
pascal@13283 | 7 SHORT_DESC="A lightweight, fast, simple, free libc." |
pascal@13283 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13283 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@13283 | 10 WEB_SITE="http://www.etalabs.net/musl/" |
pascal@13283 | 11 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pascal@13283 | 12 ARCH="i386" |
pascal@13283 | 13 |
pascal@13283 | 14 DEPENDS="" |
pascal@13283 | 15 BUILD_DEPENDS="" |
pascal@13283 | 16 |
pascal@13283 | 17 # Rules to configure and make the package. |
pascal@13283 | 18 compile_rules() |
pascal@13283 | 19 { |
pascal@13283 | 20 cd $src |
pascal@13283 | 21 ./configure --prefix=/usr/share/musl --exec-prefix=/usr/share/musl \ |
pascal@13283 | 22 --target=$ARCH $CONFIGURE_ARGS |
pascal@13283 | 23 make && |
pascal@13283 | 24 make $DESTDIR=$DESTDIR install |
pascal@13283 | 25 } |
pascal@13283 | 26 |
pascal@13283 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13283 | 28 genpkg_rules() |
pascal@13283 | 29 { |
pascal@13283 | 30 mkdir -p $fs/usr/share/musl/lib $fs/etc |
pascal@13283 | 31 cp -a $install/lib $fs |
pascal@13283 | 32 cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib |
pascal@13283 | 33 echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$ARCH.path |
pascal@13283 | 34 } |