You are not logged in.

#1 2011-08-09 03:01:50

MetaMan
Member
Registered: 2011-08-08
Posts: 43

[SOLVED] How to make a PKGBUILD for a pre-compiled program

I just got the Humble Indie Bundle and I was wondering how I could make a pacman packages for the individual games for easy management. These games are pre-compiled, and it would also help if you could recommend where (and how) to place the files. I've heard the /opt is a good place... An example PKGBUILD would be really helpful.

Thanks! big_smile

Last edited by MetaMan (2011-08-09 16:42:04)


http://localhost/signature.txt
Error 403: Forbidden

Offline

#2 2011-08-09 03:04:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

I can't vouch for it's quality, but there is already one in AUR: http://aur.archlinux.org/packages.php?ID=51204


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-08-09 03:07:57

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

jasonwryan wrote:

I can't vouch for it's quality, but there is already one in AUR: http://aur.archlinux.org/packages.php?ID=51204

I'll take a look at that and see if it's PKGBUILD can be adapted for my use...


http://localhost/signature.txt
Error 403: Forbidden

Offline

#4 2011-08-09 07:09:18

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

Offline

#5 2011-08-09 14:15:55

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

I've linked my PKGBUILD's of some precompiled Humble Indie Bundle games in this post. And it works, too.


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#6 2011-08-09 14:46:49

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

If used fukawi2's PKGBUILD as a base, but I get this error:

==> Making package: osmos 1.6.1-1 (Tue Aug  9 09:41:55 CDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found osmos-1.6.1.tar.gz
==> Validating source files with md5sums...
    osmos-1.6.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting osmos-1.6.1.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
==> Nothing to compile for osmos
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
/usr/bin/strip:./opt/osmos-1.6.1/Osmos.bin64: File format not recognized

Any ideas?


http://localhost/signature.txt
Error 403: Forbidden

Offline

#7 2011-08-09 14:58:35

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

Yes, that happens with VVVVVV, too. I've solved it by adding options=('!strip'). I've played the game and there are no side effects.

EDIT: It's probably because you run a 32-bit system and strip doesn't recognize a 64-bit binary.

Last edited by hauzer (2011-08-09 16:34:50)


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#8 2011-08-09 16:06:26

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

Thanks! Got a working package. My first one, actually. big_smile

One more: I can't seem to find a obvious "Mark as solved" option. Where is it?


http://localhost/signature.txt
Error 403: Forbidden

Offline

#9 2011-08-09 16:32:52

hauzer
Member
From: Belgrade, Serbia
Registered: 2010-11-17
Posts: 279
Website

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

You just edit your first post and append [SOLVED] to the subject.


Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

Offline

#10 2011-08-09 16:41:00

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [SOLVED] How to make a PKGBUILD for a pre-compiled program

Thanks! Not to fancy, but this is the Arch forums. tongue


http://localhost/signature.txt
Error 403: Forbidden

Offline

Board footer

Powered by FluxBB