wok annotate musl-libc/receipt @ rev 24889
grub2: sed command corrected
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 02 17:34:21 2022 +0100 (2022-04-02) |
parents | 453c249b6219 |
children | 4200a0a66d4f |
rev | line source |
---|---|
pascal@13283 | 1 # SliTaz package receipt. |
pascal@13283 | 2 |
pascal@13283 | 3 PACKAGE="musl-libc" |
pascal@24687 | 4 VERSION="1.2.2" |
pascal@13283 | 5 CATEGORY="development" |
pascal@13283 | 6 SHORT_DESC="A lightweight, fast, simple, free libc." |
pascal@13283 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14743 | 8 LICENSE="MIT" |
Hans-G?nter@21500 | 9 WEB_SITE="https://www.musl-libc.org/" |
Hans-G?nter@21500 | 10 |
Hans-G?nter@23205 | 11 SOURCE="musl" |
pascal@13283 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@13283 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pascal@13283 | 14 |
pascal@13283 | 15 DEPENDS="" |
pascal@13283 | 16 BUILD_DEPENDS="" |
pascal@13283 | 17 |
Hans-G?nter@21500 | 18 TARGET="i386" |
Hans-G?nter@21500 | 19 |
pascal@24425 | 20 # What is the latest version available today? |
pascal@24425 | 21 current_version() |
pascal@24425 | 22 { |
pascal@24425 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 24 sed "/snapshot/d;/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 25 } |
pascal@24425 | 26 |
pascal@13283 | 27 # Rules to configure and make the package. |
pascal@13283 | 28 compile_rules() |
pascal@13283 | 29 { |
Hans-G?nter@21500 | 30 ./configure \ |
Hans-G?nter@21500 | 31 --prefix=/usr/share/musl \ |
Hans-G?nter@21500 | 32 --exec-prefix=/usr/share/musl \ |
Hans-G?nter@21500 | 33 --target=$TARGET \ |
Hans-G?nter@21500 | 34 $CONFIGURE_ARGS |
pascal@13283 | 35 make && |
al@20480 | 36 make DESTDIR=$DESTDIR install |
pascal@13283 | 37 } |
pascal@13283 | 38 |
pascal@13283 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13283 | 40 genpkg_rules() |
pascal@13283 | 41 { |
Hans-G?nter@21500 | 42 mkdir -p $fs/usr/share/musl/lib |
Hans-G?nter@21500 | 43 mkdir -p $fs/etc $fs/bin |
Hans-G?nter@21500 | 44 |
Hans-G?nter@21500 | 45 cp -a $install/lib $fs |
Hans-G?nter@21500 | 46 ln -s /usr/share/musl/lib/libc.so $fs/bin/ldd-musl |
pascal@13283 | 47 cp -a $install/usr/share/musl/lib/*.so $fs/usr/share/musl/lib |
Hans-G?nter@23205 | 48 echo "/usr/share/musl/lib" > $fs/etc/ld-musl-$TARGET.path |
pascal@13283 | 49 } |