wok view musl-libc/receipt @ rev 25140
updated pigz (2.4 -> 2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 14:12:55 2022 +0100 (2022-06-29) |
parents | f77a9c3daaae |
children | 3c71bb4367c3 |
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 }