[arch-general] Package building - Change name of finished package

Guillaume ALAUX guillaume at alaux.net
Mon Jan 3 12:00:58 EST 2011


On 3 January 2011 17:08, Baho Utot <baho-utot at columbus.rr.com> wrote:
> On Monday, January 03, 2011 11:38:52 am Guillaume ALAUX wrote:
>> On 3 January 2011 16:52, Baho Utot <baho-utot at columbus.rr.com> wrote:
>> > On Monday, January 03, 2011 11:17:46 am Ray Rashif wrote:
>> >> On 3 January 2011 23:29, Baho Utot <baho-utot at columbus.rr.com> wrote:
>> >> > joomla-1.5.22-1-any-<sitename>.pkg.tar.xz
>> >> >
>> >> > Is this possible?
>> >>
>> >> No.
>> >>
>> >> joomla-$sitename-1.55.22-1-any.pkg.tar.xz is possible:
>> >>
>> >> _sitename=foo
>> >> pkgname=joomla-$_sitename
>> >> ...
>> >
>> > Yes I figured that as a possiblilty as I have seen simular in some other
>> > PKGBUILDs.
>> >
>> > joomla-1.5.22-1-any-<sitename>.pkg.tar.xz is cleaner but I can live with
>> > joomla-$sitename-1.55.22-1-any.pkg.tar.xz
>> >
>> > just isn't pretty.
>> >
>> > Thanks
>>
>> You could use a split PKGBUILD[0]:
>>
>> basename=joomla
>>
>> build()
>> package_joom-site1() {}
>> package_joom-site2() {}
>> package_joom-site3() {}
>> ...
>>
>> [0] http://www.archlinux.org/pacman/PKGBUILD.5.html#_package_splitting
>>
>> --
>> Guillaume
>
>
> OK thanks I'll try that
>
> I'll need to find am example so I can grok that build style.
>
>
>

wireshark[0] is a split package for instance.

http://projects.archlinux.org/svntogit/packages.git/tree/wireshark/trunk/PKGBUILD

--
Guillaume


More information about the arch-general mailing list