2009-11-08 22:53:54 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar xvfz $src
|
|
|
|
mv SABnzbd-* $out
|
|
|
|
|
2009-11-08 22:59:56 +03: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 22:53:54 +03:00
|
|
|
mkdir $out/bin
|
2009-11-09 02:37:49 +03:00
|
|
|
echo "$python/bin/python $out/SABnzbd.py \$*" > $out/bin/sabnzbd
|
2009-11-08 22:59:56 +03:00
|
|
|
chmod +x $out/bin/sabnzbd
|
2009-11-08 22:53:54 +03:00
|
|
|
|
|
|
|
for i in $(cd $out/bin && ls); do
|
2009-11-09 02:37:49 +03:00
|
|
|
wrapProgram $out/bin/$i --prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $out):$(toPythonPath $cheetahTemplate)" \
|
|
|
|
--prefix PATH : "$par2cmdline/bin:$unzip/bin:$unrar/bin"
|
2009-11-08 22:53:54 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
echo $out
|