wok-6.x annotate uclibc-i486/receipt @ rev 20297

uclibc-x86_64: keep library indexes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 28 14:14:59 2018 +0200 (2018-04-28)
parents a436a235f098
children 8dd8bab3f0ca
rev   line source
pascal@6099 1 # SliTaz package receipt.
pascal@6099 2
pascal@6099 3 TARGET="i486"
pascal@6099 4 PACKAGE="uclibc-$TARGET"
pascal@6099 5 VERSION="prebuilt"
pascal@6099 6 CATEGORY="base-system"
pascal@6099 7 SHORT_DESC="UcLibc libraries."
pascal@6099 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14781 9 LICENSE="LGPL"
pascal@6099 10 WEB_SITE="http://impactlinux.com/aboriginal"
pascal@6099 11 WANTED="uclibc-cross-compiler-$TARGET"
pascal@20297 12 COOKOPTS="!strip"
pascal@6099 13
pascal@6099 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@6099 15 genpkg_rules()
pascal@6099 16 {
pascal@6101 17 mkdir -p $fs/lib
slaxemulator@8240 18 cp -a $src/lib/*.so* $fs/lib
pascal@6099 19 }
pascal@6101 20
pascal@11824 21 # Pre and post install commands for Tazpkg.
pascal@11824 22 post_install()
pascal@11824 23 {
pascal@11826 24 echo chroot "$1/" /usr/bin/uclibc-${PACKAGE##*-}-ldconfig
pascal@11824 25 }
pascal@11824 26
pascal@11824 27 pre_remove()
pascal@11824 28 {
pascal@11824 29 for i in /lib/ld-uClibc.so*; do
pascal@11824 30 case "$(readlink $i)" in
pascal@11824 31 *usr/share/$PACKAGE/lib/*) rm -f $i ;;
pascal@11824 32 esac
pascal@11824 33 done
pascal@11824 34 }
pascal@11824 35
pascal@6101 36 TAZBB_NO_INSTALL="because this is not the right target !"