[pacman-dev] Libraries for makepkg

R. Dale Thomas rdt at knoppmyth.net
Sat May 10 02:26:45 EDT 2008


Geoffroy Carrier wrote:
> On Sat, May 10, 2008 at 5:16 AM, Allan McRae <mcraeallan at hotmail.com> wrote:
>> I can think of one function which would save a lot of discussion around
>> here:
>> create_desktop_file(<progname>, <description>, <category>)
> Except I think you need at least to use an icon, and if possible to
> translate descriptions, that you might get locale issues (charset for
> the name/description, even for international apps like Prot\'eg\'e I
> happen to package), etc.
> Else, seems a good idea :o)
> 
> I'd like something that would replace/shorten that (taken from javacc):
> 
>   for _exe in javacc jjdoc jjtree
>   do
>     cat << EOF > $_exe
> #!/bin/sh
> exec /usr/share/java/javacc/bin/$_exe \$@
> EOF
>   install -Dm755 $_exe "$pkgdir/usr/bin/$_exe"
>   done
> 

	Let me show my stupidity here, but why would a script be:
#!/bin/sh
exec /usr/share/java/javacc/bin/$_exe \$@

	To spawn a shell to start the program, whats wrong with a
symlink to the program in its place?
	ln -s /usr/share/java/javacc/$_exe $pkgdir/usr/bin/$_exe






More information about the pacman-dev mailing list