1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

* Build bzip2 shared library.

svn path=/nixpkgs/trunk/; revision=3194
This commit is contained in:
Eelco Dolstra 2005-06-17 13:39:06 +00:00
parent b8bae3582b
commit 98761b883a

View file

@ -1,3 +1,34 @@
. $stdenv/setup
installFlags="PREFIX=$out"
preBuild=preBuild
preBuild() {
make -f Makefile-libbz2_so
}
patchELF() {
# Patch all ELF executables and shared libraries.
header "patching ELF executables and libraries (BLA)"
find "$prefix" \( \
\( -type f -a -name "*.so*" \) -o \
\( -type f -a -perm +0100 \) \
\) -exec patchelf --shrink-rpath {} \;
stopNest
}
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