1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00
nixpkgs/pkgs/tools/compression/bzip2/builder.sh
Eelco Dolstra f468a5597a * Install a libbz2.so symlink. Otherwise, programs that link against
-lbz2 will get libbz2.a, which is generally not what we want.

svn path=/nixpkgs/branches/stdenv-updates/; revision=14307
2009-03-03 10:42:51 +00:00

25 lines
419 B
Bash

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