wok-6.x view musl-libc/receipt @ rev 24991

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 14 08:41:24 2022 +0000 (2022-05-14)
parents f77a9c3daaae
children
line source
1 # SliTaz package receipt.
3 PACKAGE="musl-libc"
4 VERSION="1.2.3"
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/"
10 REPOLOGY="musl"
12 SOURCE="musl"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}releases/$TARBALL"
16 DEPENDS=""
17 BUILD_DEPENDS=""
19 TARGET="i386"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/snapshot/d;/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr/share/musl \
33 --exec-prefix=/usr/share/musl \
34 --target=$TARGET \
35 $CONFIGURE_ARGS
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/bin
44 mkdir -p $fs/etc
45 mkdir -p $fs/usr/share/musl/lib
47 cp -a $install/lib $fs
48 ln -s /usr/share/musl/lib/libc.so $fs/bin/ldd-musl
49 cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib
50 echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$TARGET.path
51 }