mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-27 09:58:14 +01:00
Update build script.
Adapted from CSB project Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
e5acbbcb1e
commit
33774b0fcf
2 changed files with 8 additions and 2 deletions
|
@ -72,6 +72,9 @@ for dir in \
|
||||||
# Get the version
|
# Get the version
|
||||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
# Get the build
|
||||||
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -84,7 +87,7 @@ for dir in \
|
||||||
# The real build starts here
|
# The real build starts here
|
||||||
sh ${package}.SlackBuild || exit 1
|
sh ${package}.SlackBuild || exit 1
|
||||||
if [ "$INST" = "1" ]; then
|
if [ "$INST" = "1" ]; then
|
||||||
PACKAGE="${package}-$version-*.txz"
|
PACKAGE="${package}-$version-${build}*.txz"
|
||||||
if [ -f $TMP/$PACKAGE ]; then
|
if [ -f $TMP/$PACKAGE ]; then
|
||||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||||
else
|
else
|
||||||
|
|
|
@ -86,6 +86,9 @@ for dir in \
|
||||||
# Get the version
|
# Get the version
|
||||||
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
version=$(cat ${package}.SlackBuild | grep "VERSION:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
|
# Get the build
|
||||||
|
build=$(cat ${package}.SlackBuild | grep "BUILD:" | cut -d "-" -f2 | rev | cut -c 2- | rev)
|
||||||
|
|
||||||
# Check for duplicate sources
|
# Check for duplicate sources
|
||||||
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
sourcefile="$(ls -l $MSBROOT/$dir/${package}-*.tar.?z* | wc -l)"
|
||||||
if [ $sourcefile -gt 1 ]; then
|
if [ $sourcefile -gt 1 ]; then
|
||||||
|
@ -98,7 +101,7 @@ for dir in \
|
||||||
# The real build starts here
|
# The real build starts here
|
||||||
sh ${package}.SlackBuild || exit 1
|
sh ${package}.SlackBuild || exit 1
|
||||||
if [ "$INST" = "1" ]; then
|
if [ "$INST" = "1" ]; then
|
||||||
PACKAGE="${package}-$version-*.txz"
|
PACKAGE="${package}-$version-${build}*.txz"
|
||||||
if [ -f $TMP/$PACKAGE ]; then
|
if [ -f $TMP/$PACKAGE ]; then
|
||||||
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
upgradepkg --install-new --reinstall $TMP/$PACKAGE
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue