24 Nov
2009
24 Nov
'09
6:13 a.m.
2009/11/24 Ranguvar <ranguvar@archlinux.us>
On links, you can just ln -s. For the first argument to ln, don't specify $pkgdir. This is correct for a PKGBUILD, for example:
ln -s /opt/foo/foobin "$pkgdir/usr/bin/foobin"
The link will be removed on uninstall.
Hope that helps, -- Ranguvar
Just in case the OP takes this literally (and I have reason to believe so) - that is _wrong_ for a _PKGBUILD_, correct for an install scriptlet i.e foobar.install; post_install(), post_remove().