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;
# Maintainer: Alper KANAT alperkanat@raptiye.org
pkgname=django-grappelli
pkgver=2.3.5
pkgrel=1
pkgdesc="A jazzy skin for the Django Admin-Interface"
url="https://github.com/sehmaschine/django-grappelli"
arch=('any')
license=('GPL2')
makedepends=("git" "python2" "python2-distribute")
conflicts=()
provides=()
source=(https://github.com/sehmaschine/django-grappelli/tarball/2.3.5)
md5sums=('36291a468ea10d50b33d782413cd436c')
build() {
cd ${srcdir}
}
For test purposes, I tried to build this PKGBUILD. The tarball is downloaded with the name 2.3.5 and successfully extracted into src/ folder but with a commit id (which makes it kind of random):
$ 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.
--- Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 10:22 AM, Alper Kanat tunix@raptiye.org wrote:
Hey There,
Hi
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;
# Maintainer: Alper KANAT alperkanat@raptiye.org
pkgname=django-grappelli
pkgver=2.3.5
pkgrel=1
pkgdesc="A jazzy skin for the Django Admin-Interface"
url="https://github.com/sehmaschine/django-grappelli"
arch=('any')
license=('GPL2')
makedepends=("git" "python2" "python2-distribute")
git is not a make dependency, since you are downloading a tarball python2 should be moved to depends
conflicts=()
provides=()
remove all the empty variables from the PKGBUILD
source=(https://github.com/sehmaschine/django-grappelli/tarball/2.3.5)
make it source=($pkgname-$pkgver.tar.gz::https://github.com/sehmaschine/$pkgname/tarball/$pkgver)
md5sums=('36291a468ea10d50b33d782413cd436c')
build() {
cd ${srcdir}
}
For test purposes, I tried to build this PKGBUILD. The tarball is downloaded with the name 2.3.5 and successfully extracted into src/ folder but with a commit id (which makes it kind of random):
$ 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.
Downloading with a different name is documented here: https://wiki.archlinux.org/index.php/PKGBUILD#source I don't know of any option to extract to specific folder.
Cheers.
On Fri, Jan 20, 2012 at 5:22 PM, Alper Kanat tunix@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,
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
Anyway take a look in yle-downloader-gui's PKGBUILD https://aur.archlinux.org/packages.php?ID=51662 Thats how I do it. You can just simply copy the 1st 7 chars of the commit id in the tags menu in github :D Hope it helps
Also, this forum is really helpful: "AUR Issues, Discussion & PKGBUILD Requests" at https://bbs.archlinux.org/viewforum.php?id=38
Hey There,
--- Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 14:13, Jesse Juhani Jaara jesse.jaara@gmail.comwrote:
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
I can't understand what you mean?
Le vendredi 20 jan 2012 à 16:12:11 (+0200), Alper Kanat a écrit :
Hey There,
Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 14:13, Jesse Juhani Jaara jesse.jaara@gmail.comwrote:
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
I can't understand what you mean?
In a mail-list, avoid to use so many newlines. Juste write some paragraphs, and not alone sentences.
perjantai, 20. tammikuuta 2012 16:12:11 Alper Kanat kirjoitti:
Hey There,
Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 14:13, Jesse Juhani Jaara
jesse.jaara@gmail.comwrote:
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
I can't understand what you mean?
I'm referring to this.... ########### pkgname=django-grappelli
pkgver=2.3.5
pkgrel=1 ############ Those 3 empty newlines you have there make the thing a hell of lot harder to read. Many are also reading their mail on 3" screen of their smart phone.
pkgname=django-grappelli pkgver=2.3.5 pkgrel=1
See, its not hard to read them eventought they are straight under each others. And saves a lot of key stokes if you edit that in console :D
Well this is how it looks to me: http://cl.ly/DVV8
I don't know what went wrong but sorry for any inconveniences.
--- Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 16:42, Jesse Juhani Jaara jesse.jaara@gmail.comwrote:
perjantai, 20. tammikuuta 2012 16:12:11 Alper Kanat kirjoitti:
Hey There,
Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 14:13, Jesse Juhani Jaara
jesse.jaara@gmail.comwrote:
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
I can't understand what you mean?
I'm referring to this.... ########### pkgname=django-grappelli
pkgver=2.3.5
pkgrel=1 ############ Those 3 empty newlines you have there make the thing a hell of lot harder to read. Many are also reading their mail on 3" screen of their smart phone.
pkgname=django-grappelli pkgver=2.3.5 pkgrel=1
See, its not hard to read them eventought they are straight under each others. And saves a lot of key stokes if you edit that in console :D
Le vendredi 20 jan 2012 à 17:02:28 (+0200), Alper Kanat a écrit :
Well this is how it looks to me: http://cl.ly/DVV8
I don't know what went wrong but sorry for any inconveniences.
Try to write in plain text instead of Rich formatting next time ;) Oh, and also write at the bottom of an e-mail, not at the top.
I guess it's because you're using fancy formatted text, while others (like myself) are using plain text. For some reason google's decided that 1 formatted text linebreak == 3 unformatted text linebreaks. Or something.
On 20 January 2012 15:02, Alper Kanat tunix@raptiye.org wrote:
Well this is how it looks to me: http://cl.ly/DVV8
I don't know what went wrong but sorry for any inconveniences.
Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 16:42, Jesse Juhani Jaara jesse.jaara@gmail.comwrote:
perjantai, 20. tammikuuta 2012 16:12:11 Alper Kanat kirjoitti:
Hey There,
Quis custodiet ipsos custodes?
On Fri, Jan 20, 2012 at 14:13, Jesse Juhani Jaara
jesse.jaara@gmail.comwrote:
In the future please not use so too manu newlines.... If you do, I will confiscate your Enter keys....
I can't understand what you mean?
I'm referring to this.... ########### pkgname=django-grappelli
pkgver=2.3.5
pkgrel=1 ############ Those 3 empty newlines you have there make the thing a hell of lot harder to read. Many are also reading their mail on 3" screen of their smart phone.
pkgname=django-grappelli pkgver=2.3.5 pkgrel=1
See, its not hard to read them eventought they are straight under each others. And saves a lot of key stokes if you edit that in console :D
aur-general@lists.archlinux.org