wok view bzip2/receipt @ rev 7674

Fixed linux. Need to make folder PWD/_pkg before adding bzImage to it. Also i'm force copying kernel config file now so we have the right config. It is copyed twice so its needed and doesn't hunt anything i think.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 16 17:16:06 2010 +0000 (2010-12-16)
parents 2e0531fcc423
children 8bfd4fcfb42a
line source
1 # SliTaz package receipt.
3 PACKAGE="bzip2"
4 VERSION="1.0.6"
5 CATEGORY="utilities"
6 SHORT_DESC="High-quality data compressor."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.bzip.org/"
10 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
11 DEPENDS="bzlib"
12 TAGS="compression archive"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 make -f Makefile-libbz2_so
19 make clean
20 make
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
28 # Da bunzip2, bzcat and lib symlink.
29 cd $fs/usr/bin
30 ln -s bzip2 bunzip2
31 ln -s bzip2 bzcat
32 }
34 # Remove Busybox symlinks before installing
35 pre_install()
36 {
37 local root
38 root=$1
39 echo "Processing post-install commands..."
40 rm -f $root/usr/bin/bunzip2
41 rm -f $root/usr/bin/bzcat
42 # rm -f $root/usr/bin/bzip2
43 }
45 # Restore Busybox symlinks upon removal
46 post_remove()
47 {
48 ln -s /bin/busybox /usr/bin/bunzip2
49 ln -s /bin/busybox /usr/bin/bzcat
50 # ln -s /bin/busybox /usr/bin/bzip2
51 }