summaryrefslogtreecommitdiff
path: root/misc/boxes/boxes.SlackBuild
diff options
context:
space:
mode:
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