Commits

Moises Henriquez committed 9d8332e

lxde-meta automatically generate slack-required and dont install the compoents while generating package

  • Participants
  • Parent commits 300b343

Comments (0)

Files changed (1)

File var/vabs/lxde-meta/src/lxde-meta.SlackBuild

 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
 LINK=${LINK:-""}  #Enter URL for package here!
-MAKEDEPENDS=${MAKEDEPENDS:-"lxde-common lxappearance lxmenu-data menu-cache lxpanel gpicview lxmusic lxinput lxde-icon-theme lxappearance-obconf lxterminal lxpolkit lxshortcut lxrandr lxsession-edit lxtask lxnm libfm pcmanfm"}
-
+COMPONENTS="lxde-common \
+lxappearance \
+lxmenu-data \
+menu-cache \
+lxpanel \
+gpicview \
+lxmusic \
+lxinput \
+lxde-icon-theme \
+lxappearance-obconf \
+lxterminal \
+lxpolkit \
+lxshortcut \
+lxrandr \
+lxsession-edit \
+lxtask \
+lxnm \
+libfm \
+pcmanfm \
+xarchiver"
 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
 #----------------------------------------------------------------------------
 
-
+if [ "$NORUN" != 1 ]; then
 #SETUP PACKAGING ENVIRONMENT
 #--------------------------------------------
 CWD=$(pwd)
 #--------------------------------------------------------------
 echo "Finding dependencies..."
 #ADD="$ADDRB" EXCLUDE="$EXRB" requiredbuilder -v -y -s $RELEASEDIR $PKG
-cat >> $RELEASEDIR/slack-required <<EFO
-openbox
-lxsession
-lxpanel
-lxinput
-lxtask
-lxterminal
-libfm
-pcmanfm
-gpicview
-lxde-icon-theme
-lxde-common
-lxmenu-data
-lxmusic
-lxrandr
-lxsession-edit
-menu-cache
-EFO
-cat $RELEASEDIR/slack-required > $PKG/install/slack-required
+# Generate the slack-required
+rm -f $RELEASEDIR/slack-required
+rm -f $PKG/install/slack-required
+for i in $(echo $COMPONENTS | uniq); do
+	echo $i >> $RELEASEDIR/slack-required
+	echo $i >> $PKG/install/slack-required
+done
 
 echo "Creating package $NAME-$VERSION-$ARCH-$BUILD.txz"
 makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.txz
 cd $CWD
 echo "Cleaning up temp files..." && rm -rf $TMP
 echo "Package Complete"
+fi
 #--------------------------------------------------------------
 
 # vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##