wok-next view musl-libc/receipt @ rev 20884
Check Repology info from m* to python-babel
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 12 18:34:58 2018 +0300 (2018-07-12) |
parents | d43bf7aae921 |
children | d5aab818505e |
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"
11 HOST_ARCH="i486 x86_64 arm"
13 TARBALL="musl-$VERSION.tar.gz"
14 WGET_URL="https://www.musl-libc.org/releases/$TARBALL"
16 SPLIT="musl-libc-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case $ARCH in
22 i*86) TARGET='i386';;
23 x86_64) TARGET='x86_64';;
24 arm*) TARGET='ARM';;
25 esac
26 PREFIX='/usr/lib/musl'
28 ./configure \
29 --prefix=$PREFIX \
30 --exec-prefix=/usr \
31 --target=$TARGET \
32 $CONFIGURE_ARGS &&
33 make &&
34 make $DESTDIR=$DESTDIR install || exit 1
36 mkdir -p $install/etc
37 echo "$PREFIX/lib" > $install/etc/ld-musl-$TARGET.path
39 for i in linux asm asm-generic; do
40 ln -s /usr/include/$i $install$PREFIX/include/$i
41 done
43 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
44 mkdir -p $docdir
45 cp README $docdir
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 case $PACKAGE in
52 musl-libc)
53 copy etc/ *.so*
54 ;;
55 *-dev)
56 copy @dev @std @rm
57 ;;
58 esac
59 }