You are not logged in.

#1 2010-09-07 07:55:14

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

First PKGBUILD

Hey guys! I just submitted my first package to the aur.. just thought I'd get suggestions from fellow packagers on how I can better follow the standard guidelines and such (if I'm not). Thankies!

http://aur.archlinux.org/packages.php?ID=40602


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#2 2010-09-07 10:45:42

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

Re: First PKGBUILD

depends=(gcc-libs bash)
makedepends=(unzip)

I'd put single quotes around these.  Also, no need for gcc-libs there.   And is it really "bash" and not "sh" that is needed?

build() {
  install -dm755 $pkgdir/usr/share/doc/utserver
  install -dm755 $pkgdir/usr/share/utserver/{webui,downloads/in_progress,torrents,.tmp}  
}

Do not touch $pkgdir in the build() function.

  cd $startdir

You want to "cd $srcdir"

Offline

#3 2010-09-07 15:59:08

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: First PKGBUILD

Everything used to be in the package() function but it complained about there being no build. Should it just be empty then?

and I got gcc-libs and bash from namcap..


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#4 2010-09-07 19:36:45

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: First PKGBUILD

It's in the bug tracker:

http://bugs.archlinux.org/task/19914

Put them all in the build function in the meantime.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2010-09-07 19:44:34

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: First PKGBUILD

No need to have unzip as a makedepend -- use bsdtar instead (which is included with libarchive).

Offline

#6 2010-09-07 19:46:14

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: First PKGBUILD

falconindy wrote:

No need to have unzip as a makedepend -- use bsdtar instead (which is included with libarchive).

so what the wiki says under noextract here is incorrect?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#7 2010-09-07 19:56:34

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: First PKGBUILD

My mistake! Odd though, bsdtar can read a zip file (bsdtar tf ...) but it can't actually extract the contents.

Offline

Board footer

Powered by FluxBB