3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/bittorrent/builder.sh
Eelco Dolstra 92fbc10356 * Bittorrent: latest version (3.4.2).
svn path=/nixpkgs/trunk/; revision=1264
2004-08-13 10:11:11 +00:00

25 lines
561 B
Bash

buildInputs="$python $wxPython"
. $stdenv/setup
buildPhase=buildPhase
buildPhase() {
python setup.py build
}
installPhase=installPhase
installPhase() {
python setup.py install --prefix=$out
# Create wrappers that set the environment correctly.
mv $out/bin $out/bin-orig
mkdir $out/bin
for i in $(cd $out/bin-orig && ls); do
cat > $out/bin/$i <<EOF
#! /bin/sh
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
EOF
chmod +x $out/bin/$i
done
}
genericBuild