system/ink: Updated for version 0.4.1

This commit is contained in:
Robby Workman 2010-05-11 19:46:29 +02:00 committed by Michiel van Wessem
parent 0bcd9d42b4
commit 010bed7991
5 changed files with 66 additions and 37 deletions

View File

@ -1,11 +0,0 @@
--- ink/Makefile.orig 2006-08-22 16:26:25.132141803 -0500
+++ ink/Makefile 2006-08-22 16:27:15.018192620 -0500
@@ -5,7 +5,7 @@
install: all
mkdir -p $(DESTDIR)/bin
- install -m 755 -o root -g root ink $(DESTDIR)/bin/ink
+ install -m 755 ink $(DESTDIR)/bin/ink
clean:
rm -fr ink *~

View File

@ -0,0 +1,21 @@
diff -Nur ink-0.4.1.orig/Makefile ink-0.4.1/Makefile
--- ink-0.4.1.orig/Makefile 2006-09-06 09:06:22.000000000 -0500
+++ ink-0.4.1/Makefile 2008-01-06 13:52:42.531413083 -0600
@@ -1,12 +1,13 @@
-CFLAGS = -Wall -O2 -L$(PWD)/../../../libinklevel/cvs/libinklevel \
+CFLAGS += -Wall -O2 -L$(PWD)/../../../libinklevel/cvs/libinklevel \
-I$(PWD)/../../../libinklevel/cvs/libinklevel -linklevel
-DESTDIR = /usr/local/
+DESTDIR=
+PREFIX = /usr/local/
all: ink
install: all
- mkdir -p $(DESTDIR)/bin
- install -m 755 -o root -g root ink $(DESTDIR)/bin/ink
+ mkdir -p $(DESTDIR)/$(PREFIX)/bin
+ install -m 755 -o root -g root ink $(DESTDIR)/$(PREFIX)/bin/ink
clean:
rm -fr ink *.o *~

View File

@ -2,7 +2,7 @@
# Slackware build script for ink
# Copyright 2006 Robby Workman (http://rlworkman.net)
# Copyright 2006-2008 Robby Workman (http://rlworkman.net)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -22,46 +22,55 @@
# 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=ink
VERSION=0.3.1
VERSION=0.4.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=`pwd`
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM || exit 1
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
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 {} \;
# Don't set uid and gid during install; we'll handle it in the build script
cat $CWD/Makefile.diff | patch -p1 || exit 1
make || exit 1
make install DESTDIR=$PKG/usr || exit 1
# Patch the Makefile to fix DESTDIR and add PREFIX
# Sent upstream 20070106 --rworkman
patch -p1 < $CWD/ink-0.4.1-Makefile.diff
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
CFLAGS="$SLKCFLAGS" make
make PREFIX=/usr DESTDIR=$PKG install
strip --strip-unneeded $PKG/usr/bin/ink
# No man pages
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
cp -a AUTHORS 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
chown -R root.root .
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View File

@ -1,8 +1,8 @@
PRGNAM="ink"
VERSION="0.3.1"
VERSION="0.4.1"
HOMEPAGE="http://ink.sourceforge.net/"
DOWNLOAD="http://dl.sourceforge.net/ink/ink-0.3.1.tar.gz"
MD5SUM="3f1df6868b7a7503b7551b3017e11f2d"
DOWNLOAD="http://downloads.sourceforge.net/ink/ink-0.4.1.tar.gz"
MD5SUM="7234ef5ab8982417c6443767dd0f46cd"
MAINTAINER="Robby Workman"
EMAIL="rw@rlworkman.net"
APPROVED="robw810,elohim"
APPROVED="BP{k}"

View File

@ -1,5 +1,12 @@
# 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 ':'.
ink: printer ink level monitor
|-----handy-ruler------------------------------------------------------|
ink: ink (printer ink level monitor)
ink:
ink: Ink is a command line tool for checking the ink level of your printer
ink: on a system which runs Linux. It makes use of libinklevel.
@ -7,3 +14,6 @@ ink:
ink: Homepage: http://ink.sourceforge.net/
ink:
ink:
ink:
ink:
ink: