mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
libraries/libinklevel: Initial import
This commit is contained in:
parent
1b0527472e
commit
f795a150f5
5 changed files with 102 additions and 0 deletions
18
libraries/libinklevel/Makefile.diff
Normal file
18
libraries/libinklevel/Makefile.diff
Normal file
|
@ -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 *~
|
2
libraries/libinklevel/README
Normal file
2
libraries/libinklevel/README
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Libinklevel is a linux library to check the ink level of
|
||||||
|
ink jet printers connected via USB or parallel port.
|
66
libraries/libinklevel/libinklevel.SlackBuild
Normal file
66
libraries/libinklevel/libinklevel.SlackBuild
Normal file
|
@ -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
|
8
libraries/libinklevel/libinklevel.info
Normal file
8
libraries/libinklevel/libinklevel.info
Normal file
|
@ -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"
|
8
libraries/libinklevel/slack-desc
Normal file
8
libraries/libinklevel/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue