You are not logged in.

#1 2005-06-29 11:05:59

GCN
Member
From: France
Registered: 2005-06-29
Posts: 14
Website

Different names :-/

Hi all,

I'm pretty new to Arch and just using it since a couple of days. I really love that distro and I hope to contribute (first by submitting some packages) in the coming days/weeks...

I'm playing with makepkg and try to build my own packages to see how it works and I've got a problem with something I want to package.

I've packaged superkaramba and it works. I decided to try to package some themes for it and choose Liquid Weather++.

The problem is:
[*] the tarball name is: lwp-6.2.tar.bz2 !
[*] once uncompressed the directory name is: liquid_weather_plus/

Since it is a superkaramba theme, I would like my package name to be something like: superkaramba-theme-liquid_weather++-6.2-1.pkg.tar.gz.

Is it possible to use different names during package creation inside PKGBUILDs ?

Offline

#2 2005-06-29 11:13:14

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Different names :-/

You can hardcode everything (all paths if you want).
Using $pkgname, $pkgver in the urls, dirs is only to help the pkg maintainer upgrade easier, if the source package is correctly build.

Also, it is my opinion that submodules of a bigger application should be somehow grouped under appname-submoduletype-submodulename (something like kde-windeco-crystal for example). I don't know if this is a packaging guideline.

Please note that any package contributions should be submitted to AUR (superkaramba is there for some time, not sure if it's the latest though).

Offline

#3 2005-06-29 11:35:07

GCN
Member
From: France
Registered: 2005-06-29
Posts: 14
Website

Re: Different names :-/

Hi IceRAM and thanks for your quick reply.

IceRAM wrote:

You can hardcode everything (all paths if you want).

That's a good news but I don't know how to do this (and didn't find anything in the docs I've read).

Could you explain more please ?

Offline

#4 2005-06-29 15:06:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Different names :-/

GCN wrote:
IceRAM wrote:

You can hardcode everything (all paths if you want).

That's a good news but I don't know how to do this (and didn't find anything in the docs I've read).

Could you explain more please ?

You just type it out... instead of:
source=(http://my.url.com/$pkgname-$pkgver.tar.gz)
use:
source=(http://my.url.com/niftyPackage-1.6.4.tar.gz)

Offline

#5 2005-06-29 16:10:21

GCN
Member
From: France
Registered: 2005-06-29
Posts: 14
Website

Re: Different names :-/

phrakture wrote:
GCN wrote:
IceRAM wrote:

You can hardcode everything (all paths if you want).

That's a good news but I don't know how to do this (and didn't find anything in the docs I've read).

Could you explain more please ?

You just type it out... instead of:
source=(http://my.url.com/$pkgname-$pkgver.tar.gz)
use:
source=(http://my.url.com/niftyPackage-1.6.4.tar.gz)

Oh OK... I already know that I thought I didn't explain my problem correctly. So I'll try again smile.

The tarball name (as it is on the author's website) is lwp-6.2.tar.gz. Once you untar it, it creates a directory called : liquid_weather_plus (instead of calling it lwp-6.2).

What I wish to do is to name the package something like : superkaramba-theme-liquid_weather++-6.2-1.pkg.tar.gz just because it is more easy to know this is a superkamba theme just by reading the package name. I think it is clearer than simply "liquid_weather_plus".

Also such naming would be great, for example, if you type : pacman -Ss superkaramba-theme as it would list all the available superkaramba themes.

After having a look at the makepkg sources I don't think such thing is possible (but maybe there is a trick somewhere that I didn't find)...

Offline

#6 2005-06-29 16:55:51

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Different names :-/

pkgname=superkaramba-theme-liquid_weather++
pkgver=6.2
pkgrel=1
...
source=(http://www.message.co.nz/~matt-sarah/lwp-6.2.tar.bz2)
...
build()
{
  cd $startdir/liquid_weather_plus
  ...
}

Offline

#7 2005-06-29 18:58:09

GCN
Member
From: France
Registered: 2005-06-29
Posts: 14
Website

Re: Different names :-/

Thank you very much smile

Offline

Board footer

Powered by FluxBB