wok view musl-libc/receipt @ rev 24425

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 17:50:36 2022 +0000 (2022-02-11)
parents 4b75628b23a6
children f77a9c3daaae
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/snapshot/d;/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr/share/musl \
32 --exec-prefix=/usr/share/musl \
33 --target=$TARGET \
34 $CONFIGURE_ARGS
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/musl/lib
43 mkdir -p $fs/etc $fs/bin
45 cp -a $install/lib $fs
46 ln -s /usr/share/musl/lib/libc.so $fs/bin/ldd-musl
47 cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib
48 echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$TARGET.path
49 }