wok view coreutils-file-output-part/receipt @ rev 17971

Add arpack-ng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 17 23:23:01 2015 +0200 (2015-04-17)
parents bf9d643b2c59
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-output-part"
4 VERSION="8.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that output file parts."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WANTED="coreutils"
12 DEPENDS="glibc-base"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 #
16 # This is a special package for installed system or developer. We only take
17 # a few things, as Busybox provides all the basic utilities, but not for compiling.
18 # But DO NOT erase a Busybox applet, remove it before with pre_install rules.
19 #
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/bin
23 cp -a $install/usr/bin/head $fs/usr/bin
24 cp -a $install/usr/bin/tail $fs/usr/bin
25 cp -a $install/usr/bin/split $fs/usr/bin
26 cp -a $install/usr/bin/csplit $fs/usr/bin
27 }
29 # Pre and post install commands for Tazpkg.
30 # We must remove all Busybox symlink before installing.
31 #
32 pre_install()
33 {
34 local root
35 root=$1
36 echo "Processing pre-install commands..."
37 echo -n "Removing all Busybox replaced utils... "
38 rm -f $root/usr/bin/head $root/usr/bin/tail $root/usr/bin/split
39 status
40 }
42 post_remove()
43 {
44 ln -s /bin/busybox $1/usr/bin/head
45 ln -s /bin/busybox $1/usr/bin/tail
46 ln -s /bin/busybox $1/usr/bin/split
47 }