wok annotate dietlibc/receipt @ rev 25201
updated python-lxml (4.5.0 -> 4.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 14:11:40 2022 +0100 (2022-07-13) |
parents | 68779cca8bf6 |
children |
rev | line source |
---|---|
pascal@11220 | 1 # SliTaz package receipt. |
pascal@11220 | 2 |
pascal@11220 | 3 PACKAGE="dietlibc" |
Hans-G?nter@20828 | 4 VERSION="0.34" |
pascal@11220 | 5 CATEGORY="development" |
Hans-G?nter@20828 | 6 SHORT_DESC="A libc optimized for small size." |
pascal@11220 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14747 | 8 LICENSE="GPL2" |
Hans-G?nter@20828 | 9 WEB_SITE="https://www.fefe.de/dietlibc/" |
Hans-G?nter@20828 | 10 |
Hans-G?nter@20829 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@20652 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@11220 | 13 |
pascal@24425 | 14 # What is the latest version available today? |
pascal@24425 | 15 current_version() |
pascal@24425 | 16 { |
pascal@24425 | 17 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 18 sed '/dietlibc-/!d;/tar\..z/!d;s|.tar\..z>.*||;s|.*-||;q' |
pascal@24425 | 19 } |
pascal@24425 | 20 |
pascal@11220 | 21 # Rules to configure and make the package. |
pascal@11220 | 22 compile_rules() |
pascal@11220 | 23 { |
pascal@20212 | 24 sed -i 's|uname -m|echo i486|' libpthread/Makefile Makefile |
pascal@14365 | 25 sed -i 's|.*/nice.S.*|// &|' i386/dyn_syscalls.S |
Hans-G?nter@20828 | 26 |
pascal@14365 | 27 make prefix=/usr/lib/diet && |
pascal@14365 | 28 #make dyn prefix=/usr/lib/diet && |
pascal@14365 | 29 make prefix=/usr/lib/diet DESTDIR=$DESTDIR install 2> /dev/null |
pascal@11220 | 30 } |
pascal@11220 | 31 |
pascal@11220 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11220 | 33 genpkg_rules() |
pascal@11220 | 34 { |
pascal@14747 | 35 mkdir -p $fs/usr/bin $fs/usr/include |
pascal@14365 | 36 cp -a $install/* $fs |
pascal@19678 | 37 cp -a $install/usr/lib/diet/man $install/usr |
pascal@14747 | 38 ln -s ../lib/diet/include $fs/usr/include/diet |
pascal@14747 | 39 ln -s /usr/lib/diet/bin/diet $fs/usr/bin |
pascal@14747 | 40 ln -s /usr/lib/diet/bin/diet-dyn $fs/usr/bin |
pascal@14747 | 41 ln -s /usr/lib/diet/bin/elftrunc $fs/usr/bin |
pascal@11220 | 42 } |