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

uclibc-i486: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 26 21:45:45 2012 +0100 (2012-02-26)
parents fcd9680971b1
children 4c1ff277a32e
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@6099 9 WEB_SITE="http://impactlinux.com/aboriginal"
pascal@6099 10 WANTED="uclibc-cross-compiler-$TARGET"
pascal@6099 11
pascal@6099 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@6099 13 genpkg_rules()
pascal@6099 14 {
pascal@6101 15 mkdir -p $fs/lib
slaxemulator@8240 16 cp -a $src/lib/*.so* $fs/lib
pascal@6099 17 }
pascal@6101 18
pascal@11824 19 # Pre and post install commands for Tazpkg.
pascal@11824 20 post_install()
pascal@11824 21 {
pascal@11824 22 chroot "$1/" /usr/bin/uclibc-${PACKAGE##*-}-ldconfig
pascal@11824 23 }
pascal@11824 24
pascal@11824 25 pre_remove()
pascal@11824 26 {
pascal@11824 27 for i in /lib/ld-uClibc.so*; do
pascal@11824 28 case "$(readlink $i)" in
pascal@11824 29 *usr/share/$PACKAGE/lib/*) rm -f $i ;;
pascal@11824 30 esac
pascal@11824 31 done
pascal@11824 32 }
pascal@11824 33
pascal@6101 34 TAZBB_NO_INSTALL="because this is not the right target !"