You are not logged in.

#1 2009-10-16 21:48:32

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

[Solved] PKGBUILD: non-standard file structure, how to create a link

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

#2 2009-10-16 21:53:36

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] PKGBUILD: non-standard file structure, how to create a link

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

#3 2009-10-16 22:57:42

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [Solved] PKGBUILD: non-standard file structure, how to create a link

Oh, thanks for putting that extra s in there tongue

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

#4 2009-10-16 23:02:21

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] PKGBUILD: non-standard file structure, how to create a link

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

Board footer

Powered by FluxBB