wok-next view util-linux-blkid/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents 64e7fff3f73c
children f4c22f009037
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux-blkid"
4 VERSION="2.21.1"
5 CATEGORY="base-system"
6 SHORT_DESC="The blkid utility and library from Util linux NG."
7 MAINTAINER="pankso@slitaz.org"
8 LICENCE="GPL2"
9 WANTED="util-linux"
10 WEB_SITE="http://kernel.org/~kzak/util-linux/"
11 HOST_ARCH="i486 arm"
13 DEPENDS="glibc-base util-linux-uuid"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/lib $fs/sbin $fs/bin $fs/usr/lib
19 cp -a $install/sbin/blkid $fs/sbin
20 cp -a $install/bin/lsblk $fs/bin
21 cp -a $install/lib/libblkid.so* $fs/lib
22 cp -a $install/usr/lib/libblkid.so* $fs/usr/lib
23 }
25 # Remove old package
26 post_install()
27 {
28 if [ -d "$INSTALLED/util-linux-ng-blkid" ]; then
29 echo "Removing old: util-linux-ng-blkid"
30 rm -rf $INSTALLED/util-linux-ng-blkid
31 fi
32 }
34 # Overlap busybox
35 pre_install()
36 {
37 rm -f $root/sbin/blkid
38 }
40 post_remove()
41 {
42 cd $root/sbin
43 ln -s ../bin/busybox blkid
44 }