wok-next annotate 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 |
rev | line source |
---|---|
al@19835 | 1 # SliTaz package receipt v2. |
pascal@13283 | 2 |
pascal@13283 | 3 PACKAGE="musl-libc" |
al@19835 | 4 VERSION="1.1.16" |
pascal@13283 | 5 CATEGORY="development" |
al@19835 | 6 SHORT_DESC="Lightweight implementation of the standard C library" |
pascal@13283 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14743 | 8 LICENSE="MIT" |
al@19835 | 9 WEB_SITE="https://www.musl-libc.org/" |
al@20884 | 10 REPOLOGY="musl" |
pascal@13283 | 11 |
al@19835 | 12 TARBALL="musl-$VERSION.tar.gz" |
al@19835 | 13 WGET_URL="https://www.musl-libc.org/releases/$TARBALL" |
al@19835 | 14 |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
pascal@13283 | 16 |
al@21020 | 17 compile_rules() { |
al@19835 | 18 case $ARCH in |
al@19835 | 19 i*86) TARGET='i386';; |
al@19835 | 20 x86_64) TARGET='x86_64';; |
al@19835 | 21 esac |
al@19835 | 22 PREFIX='/usr/lib/musl' |
al@19835 | 23 |
al@19835 | 24 ./configure \ |
al@19835 | 25 --prefix=$PREFIX \ |
al@19835 | 26 --exec-prefix=/usr \ |
al@19835 | 27 --target=$TARGET \ |
al@19835 | 28 $CONFIGURE_ARGS && |
pascal@13283 | 29 make && |
al@21020 | 30 make DESTDIR=$install install || return 1 |
al@19835 | 31 |
al@19835 | 32 mkdir -p $install/etc |
al@19835 | 33 echo "$PREFIX/lib" > $install/etc/ld-musl-$TARGET.path |
al@19835 | 34 |
al@19835 | 35 for i in linux asm asm-generic; do |
al@19835 | 36 ln -s /usr/include/$i $install$PREFIX/include/$i |
al@19835 | 37 done |
al@19835 | 38 |
al@21020 | 39 cook_pick_docs README |
pascal@13283 | 40 } |
pascal@13283 | 41 |
al@21020 | 42 genpkg_rules() { |
al@19835 | 43 case $PACKAGE in |
al@19835 | 44 musl-libc) |
al@19835 | 45 copy etc/ *.so* |
al@19835 | 46 ;; |
al@19835 | 47 *-dev) |
al@20513 | 48 copy @dev @std @rm |
al@19835 | 49 ;; |
al@19835 | 50 esac |
pascal@13283 | 51 } |