You are not logged in.
I made a package for Tegra Android Toolkit 1.0r3 ( http://developer.nvidia.com/tegra-resources#toolkit ) - the problem is, in my opinion it's horrible upstream package:
1) it is binary only installer, without --extract-only like other binary packages from nvidia - I found no way to extract without running it
2) it has broken --prefix and puts it's stuff into ~/NVPACK
3) is uses things like "xterm -e bash script", "xterm -e dpkg -i sth.deb", "xterm -e sudo ..." all over the place!!!
4) it does not like fakeroot without preloading disabled
it was quite a challenge to package, but I found one way that worked, even that I don't like it. That's how I did it:
1) I check if ~/NVPACK is present or not, if yes it's build error and we stop
2) I create few fake binaries using some bash magic, like sudo
#!/bin/bash
$@
or dpkg
#!/bin/bash
cp $2 (path)/${2##*/}
and so on. I place them in $srcdir/fakebin and put the directory in front of $PATH.
3) I run script using --mode unattended, where it just does it's thing, using faked binaries provided
4) I remove changed $PATH
5) I move ~/NVPACK into $srcdir/NVPACK and proceed with installation.
The problem is, I don't really like that approach, even that I did not found anything better. I'm not putting this package on AUR yet, because it wasn't tested well enough - I've placed it at http://im.pwr.wroc.pl/~giniew/tegra-too … src.tar.gz - can anyone look at it, and check if they find better way to walk around this? Other than asking nvidia to providing .tar instead of this crazy installer? Any comments/review/hints for the PKGBUILD even if you cannot find better way? Thanks in advance!
My GPG fingerprint: 7170 26A9 D477 9FC5 3940 7266 40F5 57B7 3149 6106
Offline