23 |
|
|
24 |
## setup ## |
## setup ## |
25 |
SMAGENAME="$1" |
SMAGENAME="$1" |
|
SMAGEVERSION="$(< ${MLIBDIR}/version)" |
|
26 |
|
|
27 |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
28 |
if [[ -n ${MROOT} ]] |
if [[ -n ${MROOT} ]] |
267 |
xtitle "Compiling ${PKGNAME}" |
xtitle "Compiling ${PKGNAME}" |
268 |
echo -e "${COLGREEN}Compiling ${PKGNAME}${COLDEFAULT}" |
echo -e "${COLGREEN}Compiling ${PKGNAME}${COLDEFAULT}" |
269 |
|
|
|
# auto regen mage tree if requested |
|
|
regen_mage_tree |
|
|
|
|
270 |
if mqueryfeature "srcpkgbuild" |
if mqueryfeature "srcpkgbuild" |
271 |
then |
then |
272 |
if [[ -d ${SOURCEDIR}/${PNAME} ]] |
if [[ -d ${SOURCEDIR}/${PNAME} ]] |
764 |
fi |
fi |
765 |
fi |
fi |
766 |
|
|
767 |
|
# auto regen mage tree if requested |
768 |
|
regen_mage_tree |
769 |
|
|
770 |
if mqueryfeature "buildlog" |
if mqueryfeature "buildlog" |
771 |
then |
then |
772 |
bzip2 -9f /var/log/smage/${PKGNAME}.log |
bzip2 -9f /var/log/smage/${PKGNAME}.log |