more toolchain + stage 1 updates
[hdw-linux/hdw-linux.git] / packages / base / bzip2 / bzip2
index 484583c..0e069a9 100644 (file)
@@ -3,12 +3,12 @@
 # author: hackbard@hackdaworld.dyndns.org
 #
 # [V] 1.0.3
-# [S] 1-3 2-12
+# [S] 1-2 2-12
 # [D] bzip2-1.0.3.tar.gz http://www.bzip.org/1.0.3/
 
 e_ver=`echo $ver | awk -F. '{ print $1 "." $2 }'`
 
-if [ "$hdw_status" = "2" ] ; then
+if [ "$stage" = "2" ] ; then
        pre_install()   {
                make -f Makefile-libbz2_so
                make clean
@@ -16,10 +16,10 @@ if [ "$hdw_status" = "2" ] ; then
                        }
 
        post_install()  {
-               cp bzip2-shared $root/bin/bzip2 &&
-               cp -a libbz2.so* $root/lib &&
-               ln -svf ../../lib/libbz2.so.${e_ver} $root/usr/lib/libbz2.so &&
-               rm $root/usr/bin/{bunzip2,bzcat,bzip2} &&
+               cp -v bzip2-shared $root/bin/bzip2 &&
+               cp -av libbz2.so* $root/lib &&
+               ln -svf ../../lib/libbz2.so.${e_ver} $prefix/lib/libbz2.so &&
+               rm -v $prefix/bin/{bunzip2,bzcat,bzip2} &&
                ln -svf bzip2 $root/bin/bunzip2 &&
                ln -svf bzip2 $root/bin/bzcat
                        }