[aur-general] GUI

Daniel J Griffiths (Ghost1227) ghost1227 at archlinux.us
Tue Oct 5 02:50:57 EDT 2010


don't think i'd even do that, but just to nitpick, it'd be better written
as:

[[ -f /usr/bin/gtk-config ]] && COPTS="--with-gtk"

then add $COPTS to your compile line.

On Tue, Oct 5, 2010 at 1:47 AM, Nathan O <ndowens.aur at gmail.com> wrote:

> On Tue, Oct 5, 2010 at 1:45 AM, Sergej Pupykin <ml at sergej.pp.ru> wrote:
>
> >  On 05.10.2010 10:12, Nathan O wrote:
> >
> >> Probably not allowed to do so, but I figured I would ask. In a PKGBUILD
> >> can
> >> we do something like:
> >>
> >> echo "Do you want to enable GTK support?"
> >> read gtk
> >>
> >> if [[ "gtk" == "yes" ]]; then
> >>      ./configure --with-gtk
> >>
> >> and so on.
> >>
> >> Thanks
> >>
> > I suggest pacman calling to check if gtk2 package installed. If it is -
> > ./configure --with-gtk.
> >
>
> So I could maybe do something like:
> if [[ -f /usr/bin/gtk-config ]]; then
>    ./configure --with-gtk
>
> ?
>


More information about the aur-general mailing list