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

typo
author Erkan Yilmaz <erkan@slitaz.org>
date Fri Jun 08 09:48:36 2018 +0000 (2018-06-08)
parents 38cf0c75fa4c
children 4e6503d7a19f
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 HOST_ARCH="i486 x86_64 arm"
12 TARBALL="musl-$VERSION.tar.gz"
13 WGET_URL="https://www.musl-libc.org/releases/$TARBALL"
15 SPLIT="musl-libc-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 case $ARCH in
21 i*86) TARGET='i386';;
22 x86_64) TARGET='x86_64';;
23 arm*) TARGET='ARM';;
24 esac
25 PREFIX='/usr/lib/musl'
27 ./configure \
28 --prefix=$PREFIX \
29 --exec-prefix=/usr \
30 --target=$TARGET \
31 $CONFIGURE_ARGS &&
32 make &&
33 make $DESTDIR=$DESTDIR install || exit 1
35 mkdir -p $install/etc
36 echo "$PREFIX/lib" > $install/etc/ld-musl-$TARGET.path
38 for i in linux asm asm-generic; do
39 ln -s /usr/include/$i $install$PREFIX/include/$i
40 done
42 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
43 mkdir -p $docdir
44 cp README $docdir
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 case $PACKAGE in
51 musl-libc)
52 copy etc/ *.so*
53 ;;
54 *-dev)
55 copy @dev @std @rm
56 ;;
57 esac
58 }