Commits

Uelsk8s committed a675590

add makedepends gtk-pkgs

Comments (0)

Files changed (1)

var/vabs/gtk-pkgs/src/gtk-pkgs.SlackBuild

 ARCH=$(uname -m)
 LINK=${LINK:-""} #Enter URL for package here!
 # ----------------------
-PKGS="gtk+ \
-gtk+2 \
-gtk+3 \
-clutter-gtk \
-efax-gtk \
-gtk-chtheme \
-gtk-doc \
-gtk-engines \
-gtk-murrine-engine \
-gtk-screenshot \
-gtk-sharp \
-gtk-theme-switch \
-gtk-vnc \
-gtk-xfce-engine \
-gtk2-perl \
-gtkam \
-gtkballs \
-gtkdatabox \
-gtkdialog \
-gtkglext \
-gtkhtml \
-gtkimageview \
-gtklife \
-gtkmathview \
-gtkmm \
-gtkmmorse \
-gtknetcat \
-gtkperf \
-gtkpod \
-gtksourceview \
-gtksourceview2-sharp \
-gtksourceviewmm \
-gtkspell \
-libexif-gtk \
-libgtkhtml \
-mp3splt-gtk \
-perl-gtk2 \
-perl-gtk2-ex-podviewer \
-perl-gtk2-ex-simple-list \
-perl-gtk2-imageview \
-pygtk \
-pygtksourceview2 \
-pywebkitgtk \
-rep-gtk \
-teagtk \
-webkitgtk \
-webkitgtk3"
+PKGS="gtk+ gtk+2 gtk+3 clutter-gtk efax-gtk gtk-chtheme gtk-doc gtk-engines gtk-murrine-engine gtk-screenshot gtk-sharp gtk-theme-switch gtk-vnc gtk-xfce-engine gtk2-perl gtkam gtkballs gtkdatabox gtkdialog gtkglext gtkhtml gtkimageview gtklife gtkmathview gtkmm gtkmmorse gtknetcat gtkperf gtkpod gtksourceview gtksourceview2-sharp gtksourceviewmm gtkspell libexif-gtk libgtkhtml mp3splt-gtk perl-gtk2 perl-gtk2-ex-podviewer perl-gtk2-ex-simple-list perl-gtk2-imageview pygtk pygtksourceview2 pywebkitgtk rep-gtk teagtk webkitgtk webkitgtk3"
 
+j=1
 for i in $PKGS;do 
   DEP="$(grep MAKEDEPENDS var/vabs/$i/src/$i.SlackBuild|cut -d'"' -f2)"
-  j=1
   if [ "x$DEP" != x ];then
     if [ $j -gt 1 ];then
       DEPS="$DEPS $DEP"
       DEPS="$DEP"
     fi
   fi
-  echo $j $DEPS
-  j=$[$j +1]
+  echo $j
+  ((j++))
 done
-MAKEDEPENDS=${MAKEDEPENDS:-"$DEPS"} #Add make deps for packaging
+for i in $DEPS;do
+  j=0
+  for k in $PKGS;do
+    if [ "$i" == "$k" ];then
+      j=1
+    fi
+  done
+  if [ $j == 0 ];then
+    echo "$i" >>/tmp/DEPLIST
+  fi
+done
+DEPS=$(sort /tmp/DEPLIST|uniq)
+MAKEDEPENDS=${MAKEDEPENDS:-"startup-notification $DEPS"} #Add make deps for packaging
 if [ "$NORUN" != 1 ]; then
 
 eecho()