Re: Package building - Change name of finished package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 3 January 2011 16:52, Baho Utot <baho-utot@xxxxxxxxxxxxxxx> wrote:
> On Monday, January 03, 2011 11:17:46 am Ray Rashif wrote:
>> On 3 January 2011 23:29, Baho Utot <baho-utot@xxxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux