wok-6.x annotate util-linux-blkid/receipt @ rev 15722
Move from undigest: poppler-qt4-apps varka varka-dev vifm tmux-mem-cpu-load
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 26 13:51:57 2013 +0000 (2013-12-26) |
parents | f4c22f009037 |
children | 2b3c1a7ff882 |
rev | line source |
---|---|
pankso@12480 | 1 # SliTaz package receipt. |
pankso@12480 | 2 |
pankso@12480 | 3 PACKAGE="util-linux-blkid" |
mojo@15713 | 4 VERSION="2.24" |
pankso@12480 | 5 CATEGORY="base-system" |
pankso@12480 | 6 SHORT_DESC="The blkid utility and library from Util linux NG." |
pankso@12480 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL2" |
pankso@12480 | 9 WANTED="util-linux" |
pankso@12480 | 10 WEB_SITE="http://kernel.org/~kzak/util-linux/" |
pankso@12927 | 11 HOST_ARCH="i486 arm" |
pankso@12480 | 12 |
pascal@15000 | 13 DEPENDS="glibc-base util-linux-uuid" |
pascal@15000 | 14 |
pankso@12480 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12480 | 16 genpkg_rules() |
pankso@12480 | 17 { |
pankso@12480 | 18 mkdir -p $fs/lib $fs/sbin $fs/bin $fs/usr/lib |
pankso@12480 | 19 cp -a $install/sbin/blkid $fs/sbin |
pankso@12480 | 20 cp -a $install/bin/lsblk $fs/bin |
pankso@12480 | 21 cp -a $install/lib/libblkid.so* $fs/lib |
pankso@12480 | 22 cp -a $install/usr/lib/libblkid.so* $fs/usr/lib |
pankso@12480 | 23 } |
pankso@12480 | 24 |
pankso@12481 | 25 # Remove old package |
pankso@12481 | 26 post_install() |
pankso@12481 | 27 { |
pankso@12927 | 28 if [ -d "$INSTALLED/util-linux-ng-blkid" ]; then |
pankso@12481 | 29 echo "Removing old: util-linux-ng-blkid" |
pankso@12927 | 30 rm -rf $INSTALLED/util-linux-ng-blkid |
pankso@12481 | 31 fi |
pankso@12481 | 32 } |
pankso@12481 | 33 |
pankso@12480 | 34 # Overlap busybox |
pankso@12480 | 35 pre_install() |
pankso@12480 | 36 { |
pankso@12927 | 37 rm -f $root/sbin/blkid |
pankso@12480 | 38 } |
pankso@12480 | 39 |
pankso@12480 | 40 post_remove() |
pankso@12480 | 41 { |
pankso@12927 | 42 cd $root/sbin |
pankso@12927 | 43 ln -s ../bin/busybox blkid |
pankso@12480 | 44 } |