summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/compression/bzip2/builder.sh
blob: ea2ebc4c2db05826d7fe011ea690d550a8963d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
source $stdenv/setup
installFlags="PREFIX=$out"

if test -n "$sharedLibrary"; then

    preBuild() {
        make -f Makefile-libbz2_so
    }

    preInstall() {
        ensureDir $out/lib
        mv libbz2.so* $out/lib
        ln -s libbz2.so.1.0 $out/lib/libbz2.so
    }
    
fi

postInstall() {
    rm $out/bin/bunzip2* $out/bin/bzcat*
    ln -s bzip2 $out/bin/bunzip2
    ln -s bzip2 $out/bin/bzcat
}

genericBuild