wok-next view musl-libc/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 4e6503d7a19f
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="musl-libc"
4 VERSION="1.1.16"
5 CATEGORY="development"
6 SHORT_DESC="Lightweight implementation of the standard C library"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.musl-libc.org/"
10 REPOLOGY="musl"
12 TARBALL="musl-$VERSION.tar.gz"
13 WGET_URL="https://www.musl-libc.org/releases/$TARBALL"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 case $ARCH in
19 i*86) TARGET='i386';;
20 x86_64) TARGET='x86_64';;
21 esac
22 PREFIX='/usr/lib/musl'
24 ./configure \
25 --prefix=$PREFIX \
26 --exec-prefix=/usr \
27 --target=$TARGET \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$install install || return 1
32 mkdir -p $install/etc
33 echo "$PREFIX/lib" > $install/etc/ld-musl-$TARGET.path
35 for i in linux asm asm-generic; do
36 ln -s /usr/include/$i $install$PREFIX/include/$i
37 done
39 cook_pick_docs README
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 musl-libc)
45 copy etc/ *.so*
46 ;;
47 *-dev)
48 copy @dev @std @rm
49 ;;
50 esac
51 }