summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libinklevel/Makefile.diff18
-rw-r--r--libraries/libinklevel/README2
-rw-r--r--libraries/libinklevel/libinklevel.SlackBuild66
-rw-r--r--libraries/libinklevel/libinklevel.info8
-rw-r--r--libraries/libinklevel/slack-desc8
5 files changed, 102 insertions, 0 deletions
diff --git a/libraries/libinklevel/Makefile.diff b/libraries/libinklevel/Makefile.diff
new file mode 100644
index 0000000000..6bd777f5c5
--- /dev/null
+++ b/libraries/libinklevel/Makefile.diff
@@ -0,0 +1,18 @@
+--- Makefile.orig 2006-08-21 11:13:12.000000000 -0500
++++ Makefile 2006-08-21 14:58:59.000000000 -0500
+@@ -5,13 +5,12 @@
+
+ install: all
+ mkdir -p $(DESTDIR)/include
+- install -m 644 -o root -g root inklevel.h $(DESTDIR)/include/inklevel.h
++ install -m 644 inklevel.h $(DESTDIR)/include/inklevel.h
+ mkdir -p $(DESTDIR)/lib
+- install -m 755 -o root -g root libinklevel.so.2.0.6.5 \
++ install -m 755 libinklevel.so.2.0.6.5 \
+ $(DESTDIR)/lib/libinklevel.so.2.0.6.5
+ cd $(DESTDIR)/lib && rm -fr libinklevel.so && \
+ ln -s libinklevel.so.2.0.6.5 libinklevel.so
+- ldconfig $(DESTDIR)/lib
+
+ clean:
+ rm -fr *.o *.so.2.0.6.5 *~
diff --git a/libraries/libinklevel/README b/libraries/libinklevel/README
new file mode 100644
index 0000000000..b2f7587ecc
--- /dev/null
+++ b/libraries/libinklevel/README
@@ -0,0 +1,2 @@
+Libinklevel is a linux library to check the ink level of
+ink jet printers connected via USB or parallel port.
diff --git a/libraries/libinklevel/libinklevel.SlackBuild b/libraries/libinklevel/libinklevel.SlackBuild
new file mode 100644
index 0000000000..931f07dc7e
--- /dev/null
+++ b/libraries/libinklevel/libinklevel.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for libinklevel
+
+# Copyright 2006 Robby Workman (http://rlworkman.net)
+# 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.
+
+# Modified by the SlackBuilds.org project
+
+PRGNAM=libinklevel
+VERSION=0.6.5
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+# Don't try to set ownership of installed files; we'll take care of that
+# in the build script
+patch -p0 < $CWD/Makefile.diff || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG/usr || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README $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.tgz
diff --git a/libraries/libinklevel/libinklevel.info b/libraries/libinklevel/libinklevel.info
new file mode 100644
index 0000000000..7d91da9a77
--- /dev/null
+++ b/libraries/libinklevel/libinklevel.info
@@ -0,0 +1,8 @@
+PRGNAM="libinklevel"
+VERSION="0.6.5"
+HOMEPAGE="http://libinklevel.sourceforge.net/"
+DOWNLOAD="http://dl.sourceforge.net/libinklevel/libinklevel-0.6.5.tar.gz"
+MD5SUM="2bc2dd1e0b08de28d110355adcee8b22"
+MAINTAINER="Robby Workman"
+EMAIL="rw@rlworkman.net"
+APPROVED="robw810,elohim"
diff --git a/libraries/libinklevel/slack-desc b/libraries/libinklevel/slack-desc
new file mode 100644
index 0000000000..929de7ffe1
--- /dev/null
+++ b/libraries/libinklevel/slack-desc
@@ -0,0 +1,8 @@
+libinklevel: libinklevel - library to check printer ink levels
+libinklevel:
+libinklevel: Libinklevel is a linux library to check the ink level of
+libinklevel: ink jet printers connected via USB or parallel port.
+libinklevel:
+libinklevel: Homepage: http://libinklevel.sourceforge.net/
+libinklevel:
+libinklevel: