You are not logged in.

#1 2009-02-12 09:19:23

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Is this about right?

# Contributor: David Lindsay <dav7@dav7.net>
pkgname=falcon-bin
pkgver=0.8.14
pkgrel=2
pkgdesc="An open source, simple, fast and powerful VM-based programming language, and a scripting engine ready to empower mission-critical multithreaded applications. (binary distribution)"
arch=(i686)
url="http://www.falconpl.org/"
license=('GPL' 'custom:FPLL')
depends=(gcc-libs glibc)
replaces=(falcon)
source=(http://www.falconpl.org/project_dl/_official_rel/falcon-$pkgver.$pkgrel-bin.tgz)
md5sums=('737d85f1f1a41625863ad4e9e536b91f')

build() {
    cp -r $srcdir/usr/ $pkgdir/
}

This is the first PKGBUILD I've created. It's for the Falcon programming language and is already in the AUR. I just wanted to know if it's more or less correct - I'm especially doubtful of my use of cp -r to install everything and also my depends array.

Thanks in advance.

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#2 2009-02-12 09:33:50

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: Is this about right?

My guess is that this is a static binary so your depends array can be empty.  You can check using ldd on the binaries/libraries.

I don't know how many files you need to install, but it is safer to use "install" so you can set correct permissions.  With too many files, that may not be possible.

Offline

#3 2009-02-12 09:46:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is this about right?

$pkgver should be the upstream release number - in this case, 0.8.14.2. $pkgrel is the package release number - as this is a new package, it should be 1. man PKGBUILD for more details on this.

I'd also suggest building from source, instead of using a precompiled binary. The sourcce tarball is the first one listed on the project's download page.

Offline

#4 2009-02-14 08:05:28

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Is this about right?

Allan: I already used ldd and that's where I got the current depends. And there are about 30 files.

tomk: I see. How do I update my PKGBUILD? Also, there's already a source tarball in the AUR. I don't want to download an entire source tree since I'm really pressed for diskspace at the moment, so deliberately installed the binary release.


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#5 2009-02-14 08:28:24

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Is this about right?

dav7 wrote:

How do I update my PKGBUILD?

Just upload the revised PKGBUILD.  The AUR will detect the identical name and update the package appropriately.

Offline

#6 2009-02-14 08:29:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is this about right?

dav7 wrote:

How do I update my PKGBUILD?

The same way you created it in the first place - edit it and rebuild. (Was that a serious question? yikes)

I would still recommend the source build over the binary - makepkg can remove the source after the build, if you're stuck for space.

Offline

#7 2009-02-14 10:31:03

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Is this about right?

tdy, tomk: Yes, it was a serious question since the AUR suggests at no particular way to "edit" a PKGBUILD.


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#8 2009-02-14 12:55:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is this about right?

In that case, the question is "How do I update an AUR package?" and the answer is in the AUR documentation in the wiki. In particular, the AUR User Guidelines are recommended for all new AUR users.

As with all wiki pages, please feel free to make improvements as required.

Offline

#9 2009-02-15 03:48:09

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: Is this about right?

purely a stylistic matter, but i'd say your pkgdesc is a tad verbose.


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#10 2009-02-16 08:06:12

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Is this about right?

Okay, updated. Thanks for the input!

Last edited by dav7 (2009-02-16 08:06:25)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#11 2009-02-16 09:22:59

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: Is this about right?

@dav7: woah, forum post of the beast!  good job!


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

Board footer

Powered by FluxBB