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