You are not logged in.

#1 2007-11-13 02:55:27

Wesley
Member
From: Hannover, Germany
Registered: 2007-07-13
Posts: 33

packing the tarball: "unable to find PKGBUILD"

hi
i followed the wiki step-by-step but i am unable to pack the tar.gz so that the uploader script recognizes the PKGBUILD inside it.
i tried packing it as mentioned, packing it without a directory in it, packing it with chmod -R nobody:aur (because the files from other packs seems to be like this) and even sending in the pure PKGBUILD file.

Offline

#2 2007-11-13 03:07:44

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

Re: packing the tarball: "unable to find PKGBUILD"

I your PKGBUILD is somewhere like /var/abs/local/foo then at /var/abs/local type "tar -czf foo.tar.gz foo".  Make sure that the foo directory contains only the files needed for the PKGBUILD to work (i.e. not the source, built package etc).  i create a foo-local directories for building my AUR packages.

Offline

#3 2007-11-13 03:09:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: packing the tarball: "unable to find PKGBUILD"

Hm.  Make sure the name of your archive and the name of the dir are correct.  For example, if you are uploading libfoo, you need this structure:

libfoo.tar.gz
----libfoo/
----libfoo/PKGBUILD
----libfoo/libfoo.install
----libfoo/any-patches-you-need.patch

And make sure pkgname=libfoo in the PKGBUILD.

Offline

#4 2007-11-13 15:03:22

Wesley
Member
From: Hannover, Germany
Registered: 2007-07-13
Posts: 33

Re: packing the tarball: "unable to find PKGBUILD"

the name of the pkg, the tarball and the dir in the tarball are all exactly the same (lowercase "ufoai-svn")
i pack it from $HOME/packages/ufoai-svn/ because i make all my packages there.

Offline

#5 2007-11-13 15:06:01

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: packing the tarball: "unable to find PKGBUILD"

can you upload the tarball to some webspace?  I want to take a look inside and see if I can find anything

Offline

#6 2007-11-13 15:38:15

Wesley
Member
From: Hannover, Germany
Registered: 2007-07-13
Posts: 33

Re: packing the tarball: "unable to find PKGBUILD"

hmm, it works now hmm
the problem was indeed that i forgot -z while packing, didnt knew that this was needed.
i think it would be a nice idea to have this in the packaging wiki

Offline

#7 2007-11-13 15:43:15

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: packing the tarball: "unable to find PKGBUILD"

Wesley wrote:

hmm, it works now hmm
the problem was indeed that i forgot -z while packing, didnt knew that this was needed.
i think it would be a nice idea to have this in the packaging wiki

Well, the wiki does say to submit a 'tar.gz' file, which isn't created unless you use the -z option.  I suppose it couldn't hurt to spell it out for everyone though - added.

Last edited by Cerebral (2007-11-13 15:45:51)

Offline

#8 2007-11-13 18:51:47

Wesley
Member
From: Hannover, Germany
Registered: 2007-07-13
Posts: 33

Re: packing the tarball: "unable to find PKGBUILD"

i thought tar creates the archive in with the syntax choosen by the ending (bz2, gz etc)

Offline

#9 2007-11-13 19:05:05

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: packing the tarball: "unable to find PKGBUILD"

Nope - I've never heard of it making that decision for you.  You have to tell it explicitly.

Offline

Board footer

Powered by FluxBB