1. Moises Henriquez
  2. m0e-vabs

Commits

Moises Henriquez  committed e538a9a

xfce4-meta add option to build all packages from source

  • Participants
  • Parent commits 8d07ba1
  • Branches veclinux-7.1

Comments (0)

Files changed (1)

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

View file
 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"2"}
+BUILDNUM=${BUILDNUM:-"3"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
-ARCH=${ARCH:-"noarch"}
+ARCH="noarch"
 CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-"xfce4-dev-tools libxfce4util xfconf libxfce4ui libxfcegui4 exo garcon tumbler Thunar xfce4-panel xfce4-settings xfce4-session xfdesktop xfwm4 xfce4-appfinder gtk-xfce-engine xfwm4-themes Terminal orage xfce4-mixer thunar-volman xfce4-power-manager xfce4-notifyd xfce4-volumed xfce4-taskmanager"} #Add deps that need to be added to the slack-required file here 
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"xfce4-dev-tools libxfce4util xfconf libxfce4ui libxfcegui4 exo garcon tumbler Thunar xfce4-panel xfce4-settings xfce4-session xfdesktop xfwm4 xfce4-appfinder gtk-xfce-engine xfwm4-themes Terminal orage xfce4-mixer thunar-volman xfce4-power-manager xfce4-notifyd xfce4-volumed xfce4-taskmanager"} #Add deps needed TO BUILD this package here.
+MAKEDEPENDS=${MAKEDEPENDS:-"glib2"} # Add deps needed to BUILD this package here.
+
+# List the components for this metapackage in the order they should be built
+COMPONENTS="xfce4-dev-tools libxfce4util xfconf libxfce4ui libxfcegui4 exo garcon tumbler Thunar xfce4-panel xfce4-settings xfce4-session xfdesktop xfwm4 xfce4-appfinder gtk-xfce-engine xfwm4-themes Terminal orage xfce4-mixer thunar-volman xfce4-power-manager xfce4-notifyd xfce4-volumed xfce4-taskmanager"
+METABUILD=${METABUILD:-"NO"} # Set this to "YES" to force all components be built from source code.
+NUMJOBS=${NUMJOBS:-"-j6"}
 #----------------------------------------------------------------------------
 
 #SETUP PACKAGING ENVIRONMENT
    exit 1
 fi
 
+# Check if we need to build all the components.
+if [ ! "$METABUILD" = "NO" ]; then
+	echo "METABUILD set to $METABUILD.  The following components will be built from source code"
+	for i in $(echo $COMPONENTS); do
+		echo "$i"
+	done
+	echo ;read
+	for pkg in $COMPONENTS; do
+		cp -arxp /home/slackbuilds/var/vabs/$pkg /tmp/builds/ || exit 1
+		cd /tmp/builds/$pkg/src/ || exit 1
+		vldepper $pkg.SlackBuild || exit 1
+		BUILDNUM=${BUILDNUM} ARCH="" NUMJOBS=${NUMJOBS} sh $pkg.SlackBuild || exit 1
+		installpkg ../*.t?z || exit 1
+	done
+fi
+
 mkdir -p $PKG/install
 
 # This creates the white space in front of "handy-ruler" in slack-desc below.