trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] kdebase build failure at 70% on Arch - fonts? - /bin/sh: bdftopcf: command not found

From: Baho Utot <baho-utot@...>
Date: Tue, 03 May 2011 05:38:17 -0400
On 05/02/2011 10:16 PM, David C. Rankin wrote:
> On 05/02/2011 04:48 PM, Baho Utot wrote:
>> _trinity.desktop (){
>>      # create/install desktop
>>      install -d -m755 ${pkgdir}/etc/X11/sessions
>>      echo '[Desktop Entry]' > ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo 'Encoding=UTF-8' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo 'Type=XSession' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo "Exec=${_prefix}/bin/startkde" >>
>> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo "TryExec=${_prefix}/bin/startkde" >>
>> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo 'Name=Trinity' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      echo 'Comment=The Trinity Desktop Environment. A powerful Open 
>> Source
>> graphical desktop environment' >> 
>> ${pkgdir}/etc/X11/sessions/trinity.desktop
>>      chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop
>> }
>
> <snip>
>> package() {
> <snip>
>>      _trinity.desktop
> <snip>
> > }
>
> How is this working for you?  Is _var.iable() function identifier 
> makepkg specific? BASH doesn't like the _trinity.desktop() identifier 
> by itself:
>
> #!/bin/bash
>
> _trinity.desktop() {
>     # create/install desktop
>     # install -d -m755 ${pkgdir}/etc/X11/sessions
>     echo '[Desktop Entry]'
>     echo 'Encoding=UTF-8'
>     echo 'Type=XSession'
>     echo "Exec=${_prefix}/bin/startkde"
>     echo "TryExec=${_prefix}/bin/startkde"
>     echo 'Name=Trinity'
>     echo 'Comment=The Trinity Desktop Environment. A powerful Open 
> Source graphical desktop environment'
>     # chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop
> }
>
>   _trinity.desktop
>
> exit 0
>
> 21:15 alchemy:~/tde/tnotes/tmp> sh cr-tr.desktop.sh
> cr-tr.desktop.sh: line 14: `_trinity.desktop': not a valid identifier
>
> What gives??
>

It is a function only for the PKGBUILD.  It creates the trinity.desktop 
file into pkg directory at build time so of course it doesn't work at 
the command line as it doesn't exist.