2009-11-08 20:53:54 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar xvfz $src
|
|
|
|
mv SABnzbd-* $out
|
|
|
|
|
2009-11-08 20:59:56 +01:00
|
|
|
# Create a start script and let wrapProgram with toPythonPath wrap it so that python is started with cheetahTemplate in its importpath (classpath)
|
2009-11-08 20:53:54 +01:00
|
|
|
mkdir $out/bin
|
2009-11-09 00:37:49 +01:00
|
|
|
echo "$python/bin/python $out/SABnzbd.py \$*" > $out/bin/sabnzbd
|
2009-11-08 20:59:56 +01:00
|
|
|
chmod +x $out/bin/sabnzbd
|
2009-11-08 20:53:54 +01:00
|
|
|
|
|
|
|
for i in $(cd $out/bin && ls); do
|
2009-11-09 00:37:49 +01:00
|
|
|
wrapProgram $out/bin/$i --prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $out):$(toPythonPath $cheetahTemplate)" \
|
|
|
|
--prefix PATH : "$par2cmdline/bin:$unzip/bin:$unrar/bin"
|
2009-11-08 20:53:54 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
echo $out
|