summaryrefslogtreecommitdiff
path: root/misc/boxes/boxes.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-05 19:09:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commitc58bc4ec30c7aab3553a14eef50cd18e59f753d3 (patch)
treef661ee1d593080383afe5dd7352ae942cf206b65 /misc/boxes/boxes.SlackBuild
parent4a4a335e99ec1d03c5a84d0961440b877ff2a83a (diff)
downloadslackbuilds-c58bc4ec30c7aab3553a14eef50cd18e59f753d3.tar.gz
misc/boxes: Updated for version 1.1.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/boxes/boxes.SlackBuild')
-rw-r--r--misc/boxes/boxes.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/misc/boxes/boxes.SlackBuild b/misc/boxes/boxes.SlackBuild
index 2393c71c6e..73fb6a26b1 100644
--- a/misc/boxes/boxes.SlackBuild
+++ b/misc/boxes/boxes.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=boxes
-VERSION=${VERSION:-1.1.1}
+VERSION=${VERSION:-1.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,16 +60,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-sed -i 's,\(GLOBALCONF = /usr/share/boxes\),\1/boxes-config,' Makefile
+sed -i "s|/usr/share/boxes|/etc/boxes-config|" Makefile
+sed -i "s|-ansi||" src/Makefile
make CFLAGS_ADDTL="$SLKCFLAGS"
mkdir -p $PKG/usr/bin
@@ -82,7 +83,7 @@ mkdir -p $PKG/usr/man/man1
gzip -9 < doc/boxes.1 > $PKG/usr/man/man1/boxes.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install