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

Up: antinat, aubio, dialog, exa, gcc, lapack, musl-libc, nss, rust, svgcleaner, zip. Remove blas (part of lapack now), remove dialog desktop file.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 11 04:54:37 2017 +0300 (2017-08-11)
parents 5cbdd23acb6c
children d43bf7aae921
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
56 remove_already_packed
57 ;;
58 esac
59 }