wok view musl-libc/receipt @ rev 23965

Add tinyemu
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 02 16:50:09 2020 +0000 (2020-10-02)
parents 8b98a5e6599b
children 453c249b6219
line source
1 # SliTaz package receipt.
3 PACKAGE="musl-libc"
4 VERSION="1.2.0"
5 CATEGORY="development"
6 SHORT_DESC="A lightweight, fast, simple, free libc."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.musl-libc.org/"
11 SOURCE="musl"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 TARGET="i386"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --prefix=/usr/share/musl \
25 --exec-prefix=/usr/share/musl \
26 --target=$TARGET \
27 $CONFIGURE_ARGS
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/musl/lib
36 mkdir -p $fs/etc $fs/bin
38 cp -a $install/lib $fs
39 ln -s /usr/share/musl/lib/libc.so $fs/bin/ldd-musl
40 cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib
41 echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$TARGET.path
42 }