]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/base/bzip2/bzip2
initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / base / bzip2 / bzip2
1 # hdw - linux bzip2 package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.0.2
6 # [S] 1-3 2-12
7 # [D] bzip2-1.0.2.tar.gz ftp://sources.redhat.com/pub/bzip2/v102/
8
9 e_ver=`echo $ver | awk -F. '{ print $1 "." $2 }'`
10
11 if [ "$hdw_status" = "2" ] ; then
12         pre_install()   {
13                 make -f Makefile-libbz2_so
14                 make clean
15                 rm -f $prefix/bin/bz{cat,cmp,diff,grep,ip2*,less,more}
16                         }
17
18         post_install()  {
19                 cp bzip2-shared $root/bin/bzip2 &&
20                 cp -a libbz2.so* $root/lib &&
21                 ln -svf ../../lib/libbz2.so.${e_ver} $root/usr/lib/libbz2.so &&
22                 rm $root/usr/bin/{bunzip2,bzcat,bzip2} &&
23                 mv $root/usr/bin/{bzip2recover,bzless,bzmore} $root/bin &&
24                 ln -svf bzip2 $root/bin/bunzip2 &&
25                 ln -svf bzip2 $root/bin/bzcat
26                         }
27 fi