You are not logged in.
I'm building a PKGBUILD with the source contents in a non-standard file structure where files I have to placed by hand. I need to create a link to the executable (I'm pretty sure it needs to be statically placed) and this is how I did it:
cd $pkgname-$pkgver
mkdir -p usr/bin usr/shares/games/$pkgname
cp .data/bin/Linux/x86/launcher-bin usr/shares/games/$pkgname/
ln -s usr/shares/games/$pkgname/launcher-bin $pkgdir/usr/bin/$pkgname
It was the only way I could think of to do it. Please tell me if there is a better way.
Edit:
Hmm, this isn't even working. Link points to:
/usr/bin/shadowgrounds-demo -> usr/shares/games/shadowgrounds-demo/launcher-bin
grrrrrr
Last edited by Gen2ly (2009-10-16 23:09:43)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
this should work
ln -s /usr/share/games/$pkgname/launcher-bin $pkgdir/usr/bin/$pkgname
Last edited by wonder (2009-10-16 23:02:38)
Give what you have. To someone, it may be better than you dare to think.
Offline
Oh, thanks for putting that extra s in there
Yeah, that did it... was thinking relatively like the install -m644... entries.
Thanks, wonder.
Last edited by Gen2ly (2009-10-16 22:58:53)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
hehe. i didn't notice that "s" i just copy/paste your line and add the first /
Give what you have. To someone, it may be better than you dare to think.
Offline