summaryrefslogtreecommitdiff
path: root/system/lbrate
diff options
context:
space:
mode:
authorBojan Popovic <bocke@slackware-srbija.org>2012-12-09 11:01:04 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-11 16:22:00 -0500
commit88a36d6a54355c1d7cd8565483fbee0518b7941c (patch)
tree5a2ec38fef4ffa738150c9fa8d80e589a376b478 /system/lbrate
parente0611e31fe8fb79edbe138e9c27b50fb6efc451e (diff)
downloadslackbuilds-88a36d6a54355c1d7cd8565483fbee0518b7941c.tar.gz
system/lbrate: Added (extract CP/M LBR archives)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/lbrate')
-rw-r--r--system/lbrate/README6
-rw-r--r--system/lbrate/lbrate.SlackBuild92
-rw-r--r--system/lbrate/lbrate.info10
-rw-r--r--system/lbrate/makefile-destdir.patch.gzbin0 -> 398 bytes
-rw-r--r--system/lbrate/slack-desc19
5 files changed, 127 insertions, 0 deletions
diff --git a/system/lbrate/README b/system/lbrate/README
new file mode 100644
index 0000000000..9dcc195f6a
--- /dev/null
+++ b/system/lbrate/README
@@ -0,0 +1,6 @@
+lbrate extracts/decompresses files from CP/M LBR format. (It can also
+list and test such archives.) It does this in an 'unzip'-like manner,
+mostly hiding the details of individually compressed and renamed
+files, and transparently deals with required decompression/renaming.
+lbrate supports all three CP/M compression schemes (Q, Z, Y) and
+treats them as single entry LBR archives.
diff --git a/system/lbrate/lbrate.SlackBuild b/system/lbrate/lbrate.SlackBuild
new file mode 100644
index 0000000000..f208bf1926
--- /dev/null
+++ b/system/lbrate/lbrate.SlackBuild
@@ -0,0 +1,92 @@
+#!/bin/sh
+
+# Slackware build script for lbrate
+# Copyright 2012, Bojan Popovic, Belgrade, Serbia <bocke@slackware-srbija.org>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+PRGNAM=lbrate
+VERSION=${VERSION:-1.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="ChangeLog COPYING NEWS README TODO"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+
+# Apply destdir patch to Makefile
+zcat $CWD/makefile-destdir.patch.gz | patch -p1
+
+make CFLAGS="$SLKCFLAGS"
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ $DOCS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/lbrate/lbrate.info b/system/lbrate/lbrate.info
new file mode 100644
index 0000000000..e3c196b484
--- /dev/null
+++ b/system/lbrate/lbrate.info
@@ -0,0 +1,10 @@
+PRGNAM="lbrate"
+VERSION="1.1"
+HOMEPAGE="http://www.svgalib.org/rus/lbrate.html"
+DOWNLOAD="ftp://ftp.ibiblio.org/pub/Linux/utils/compress/lbrate-1.1.tar.gz"
+MD5SUM="fba13b13be15c65570ca6500f348a811"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Bojan Popovic"
+EMAIL="bocke@slackware-srbija.org"
diff --git a/system/lbrate/makefile-destdir.patch.gz b/system/lbrate/makefile-destdir.patch.gz
new file mode 100644
index 0000000000..23e36a41a9
--- /dev/null
+++ b/system/lbrate/makefile-destdir.patch.gz
Binary files differ
diff --git a/system/lbrate/slack-desc b/system/lbrate/slack-desc
new file mode 100644
index 0000000000..bd46ade937
--- /dev/null
+++ b/system/lbrate/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+lbrate: lbrate (extract CP/M LBR archives)
+lbrate:
+lbrate: lbrate extracts/decompresses files from CP/M LBR format. (It can also
+lbrate: list and test such archives.) It does this in an 'unzip'-like manner,
+lbrate: mostly hiding the details of individually compressed and renamed
+lbrate: files, and transparently deals with required decompression/renaming.
+lbrate: lbrate supports all three CP/M compression schemes (Q, Z, Y) and
+lbrate: treats them as single entry LBR archives.
+lbrate:
+lbrate: Website: http://www.svgalib.org/rus/lbrate.html
+lbrate: