[aur-general] creating versioned packages from github

Auguste Pop auguste at gmail.com
Fri Jan 20 04:38:25 EST 2012


On Fri, Jan 20, 2012 at 5:22 PM, Alper Kanat <tunix at raptiye.org> wrote:
> Hey There,
>
> I want to package django-grappelli (version: 2.3.5) from github. I know
> that usually we clone the repository and therefore have the latest commit
> of the project for VCS PKGBUILD's. However in this case, I want to package
> the latest stable version. So I wrote;
>
>
> $ ll src/
> toplam 4
> lrwxrwxrwx 1 tunix users   52 Oca 20 10:59 2.3.5 ->
> /home/tunix/packages/alps/django-grappelli-git/2.3.5
> drwxr-xr-x 4 tunix users 4096 Eki 11 11:07
> sehmaschine-django-grappelli-ea9441b
>
> So unless I do some bash magic like cd
> $srcdir/sehmaschine-django-grappelli-*, I won't be able to continue to
> build this package. What I wonder is if there are convenient ways to:
>
>   - Download a tarball with a predefined name (in short: rename the output
>   tarball)
>   - Extract to predefined folder
>
> that we can specify in PKGBUILD? I read the man pages of PKGBUILD and
> makepkg and couldn't find such an information.

you can always try to manually extract the file, combined with a
proper -C and --xform parameter of tar.

best regards,


More information about the aur-general mailing list