nixpkgs/pkgs/tools/compression/bzip2/builder.sh
Eelco Dolstra 0a2f531aea * Don't patch symlinked shared libraries.
svn path=/nixpkgs/trunk/; revision=3195
2005-06-17 13:46:04 +00:00

25 lines
408 B
Bash

. $stdenv/setup
installFlags="PREFIX=$out"
preBuild=preBuild
preBuild() {
make -f Makefile-libbz2_so
}
preInstall=preInstall
preInstall() {
ensureDir $out/lib
cp -pd libbz2.so* $out/lib
ln -s libbz2.so.*.*.* $out/lib/libbz2.so
}
postInstall=postInstall
postInstall() {
rm $out/bin/bunzip2 $out/bin/bzcat
ln -s bzip2 $out/bin/bunzip2
ln -s bzip2 $out/bin/bzcat
}
genericBuild