wok view dietlibc/receipt @ rev 25624

Add opendkim
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 16:45:57 2023 +0000 (12 months ago)
parents 68779cca8bf6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dietlibc"
4 VERSION="0.34"
5 CATEGORY="development"
6 SHORT_DESC="A libc optimized for small size."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.fefe.de/dietlibc/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
18 sed '/dietlibc-/!d;/tar\..z/!d;s|.tar\..z>.*||;s|.*-||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|uname -m|echo i486|' libpthread/Makefile Makefile
25 sed -i 's|.*/nice.S.*|// &|' i386/dyn_syscalls.S
27 make prefix=/usr/lib/diet &&
28 #make dyn prefix=/usr/lib/diet &&
29 make prefix=/usr/lib/diet DESTDIR=$DESTDIR install 2> /dev/null
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin $fs/usr/include
36 cp -a $install/* $fs
37 cp -a $install/usr/lib/diet/man $install/usr
38 ln -s ../lib/diet/include $fs/usr/include/diet
39 ln -s /usr/lib/diet/bin/diet $fs/usr/bin
40 ln -s /usr/lib/diet/bin/diet-dyn $fs/usr/bin
41 ln -s /usr/lib/diet/bin/elftrunc $fs/usr/bin
42 }