[aur-general] pacman4.1 PKGBUILD-git help needed
I've received a comment this morning from https://aur.archlinux.org/packages/argotlunar-git/ gtmanfred wrote: 'https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines pacman 4.1 supporst git also, patches should be in the prepare() function' I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards Alas, makepkg throws an error; ==> Retrieving sources... ==> ERROR: /src/argotlunar-git/argotlunar is not a clone of git:// github.com/mourednik/argotlunar Aborting... http://sprunge.us/LNCi What do I missing? Any advice are welcome!
Em 08/04/2013 16:10, Rob Til Freedmen escreveu:
I've received a comment this morning from https://aur.archlinux.org/packages/argotlunar-git/
gtmanfred wrote: 'https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines pacman 4.1 supporst git also, patches should be in the prepare() function'
I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards
Alas, makepkg throws an error;
==> Retrieving sources... ==> ERROR: /src/argotlunar-git/argotlunar is not a clone of git:// github.com/mourednik/argotlunar Aborting...
What do I missing? Any advice are welcome!
Examples: pacman-git I was able to build it and I didn't see anything wrong in your PKGBUILD, but maybe I missed something. I suggest removing 'src' folder (and the folder of 'SRCDEST' in case you set it in /etc/makepkg.conf), then try again. Rafael Ferreira
On Mon, Apr 8, 2013 at 9:31 PM, Rafael Ferreira <josephgbr@archlinux.info>wrote:
Em 08/04/2013 16:10, Rob Til Freedmen escreveu:
I've received a comment this morning from
gtmanfred wrote: 'https://wiki.archlinux.org/**index.php/VCS_PKGBUILD_**Guidelines<https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines> pacman 4.1 supporst git also, patches should be in the prepare() function'
I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards
Alas, makepkg throws an error;
==> Retrieving sources... ==> ERROR: /src/argotlunar-git/argotlunar is not a clone of git:// github.com/mourednik/**argotlunar<http://github.com/mourednik/argotlunar> Aborting...
What do I missing? Any advice are welcome!
Examples: pacman-git
I was able to build it and I didn't see anything wrong in your PKGBUILD, but maybe I missed something. I suggest removing 'src' folder (and the folder of 'SRCDEST' in case you set it in /etc/makepkg.conf), then try again.
Rafael Ferreira
BTW you can ditch the _gitname variable, using ${pkgname%-*} or ${pkgname%-git} if you prefer will give you the same string. Cheers. -- Maxime
On Mon, Apr 8, 2013 at 3:10 PM, Rob Til Freedmen <rob.til.freedman@gmail.com> wrote:
also, patches should be in the prepare() function'
I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards
I haven't started trying to use a prepare() section, yet, either. Here's the documentation, though: https://wiki.archlinux.org/index.php/Creating_Packages#The_prepare.28.29_fun... =-Jameson
Date: Mon, 8 Apr 2013 21:10:18 +0200 From: rob.til.freedman@gmail.com To: aur-general@archlinux.org Subject: [aur-general] pacman4.1 PKGBUILD-git help needed
I've received a comment this morning from https://aur.archlinux.org/packages/argotlunar-git/
gtmanfred wrote: 'https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines pacman 4.1 supporst git also, patches should be in the prepare() function'
I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards
Alas, makepkg throws an error;
==> Retrieving sources... ==> ERROR: /src/argotlunar-git/argotlunar is not a clone of git:// github.com/mourednik/argotlunar Aborting...
What do I missing? Any advice are welcome!
Does /src/argotlunar-git/argotluna exist? If so, get rid of it; makepkg is finding that directory and assuming it's a valid git clone, which doesn't seem to be the case. The URL should end with .git as well, but I don't know if that would cause a problem or not.
On Mon, Apr 08, 2013 at 09:10:18PM +0200, Rob Til Freedmen wrote:
I've received a comment this morning from https://aur.archlinux.org/packages/argotlunar-git/
gtmanfred wrote: 'https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines pacman 4.1 supporst git also, patches should be in the prepare() function'
I didn't found an updated PKGBUILD-git.proto nor an example of prepare() for patches. All I had was an example from the VCS_PKGBUILD_Guidelines to convert PKGBUILD to pacman4.1 standards
Alas, makepkg throws an error;
==> Retrieving sources... ==> ERROR: /src/argotlunar-git/argotlunar is not a clone of git:// github.com/mourednik/argotlunar Aborting...
What do I missing? Any advice are welcome!
it works fine here, I would also change the pkgver to something more specific than the date of the last commit, as there are probably more than one each day if a packages doesn't use tags, i have been using <number of commits>.<last short commit> pkgver() { cd "$srcdir/$_gitname" echo $(git rev-list --count master).$(git rev-parse --short master) } (if you use one of the fragment things for your source=() url like #branch=working or something, you need to change master to makepkg) http://ix.io/552 Also note that 5 lines in your .patch files have whitespace at the end of the lines. -- Daniel Wallace Archlinux Trusted User (gtmanfred) Georgia Institute of Technology
participants (6)
-
Daniel Wallace
-
Doug Newgard
-
Jameson
-
Maxime GAUDUIN
-
Rafael Ferreira
-
Rob Til Freedmen