Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4751 - nvidia-utils tweaks

Attached to Project: Arch Linux
Opened by Ash (Thikasabrik) - Wednesday, 31 May 2006, 20:40 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The nvidia-utils pkgbuild could use a tweak or two. For example, the following lines would make the .desktop a little more useful...

cd NVIDIA-Linux-x86-${_nver}

chmod +w ./usr/share/applications/nvidia-settings.desktop
sed 's:__UTILS_PATH__:/usr/bin:' ./usr/share/applications/nvidia-settings.desktop > ./nv.desktop
sed 's:__DOCS_PATH__:/usr/share/icons:' ./nv.desktop > ./usr/share/applications/nvidia-settings.desktop
chmod -w ./usr/share/applications/nvidia-settings.desktop

mkdir -p $startdir/pkg/usr/share/icons/
install $startdir/src/NVIDIA-Linux-x86-${_nver}/usr/share/doc/nvidia-settings.png $startdir/pkg/usr/share/icons/
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 01 June 2006, 15:07 GMT
Reason for closing:  Fixed
Comment by Ash (Thikasabrik) - Wednesday, 31 May 2006, 20:40 GMT
I should add that _nver=1.0-8762-pkg1, not _nver=1.0-8762, for me... changed that too ;)
Comment by Jan de Groot (JGC) - Wednesday, 31 May 2006, 21:03 GMT
For the sed operations:
sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__DOCS_PATH__:/usr/share/icons:' -i nvidia-settings.desktop

Which edits the file in-place with two regular expressions. Less code, less failures ;)

Loading...