mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/ink: Updated for version 0.5.0
This commit is contained in:
parent
30b0025afd
commit
6dea423828
4 changed files with 26 additions and 32 deletions
|
@ -1,21 +0,0 @@
|
||||||
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 *~
|
|
11
system/ink/ink-0.5.0-Makefile.patch
Normal file
11
system/ink/ink-0.5.0-Makefile.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
diff -Nur ink-0.5.0.orig/Makefile ink-0.5.0/Makefile
|
||||||
|
--- ink-0.5.0.orig/Makefile 2009-01-24 08:42:14.000000000 -0600
|
||||||
|
+++ ink-0.5.0/Makefile 2009-06-27 00:15:12.457466539 -0500
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
DESTDIR =
|
||||||
|
PREFIX = /usr/local/
|
||||||
|
-CFLAGS += -Wall -O2 -linklevel
|
||||||
|
+CFLAGS += -Wall $(EXTRA_CFLAGS) -linklevel
|
||||||
|
CC = gcc
|
||||||
|
OS=linux
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for ink
|
# Slackware build script for ink
|
||||||
|
|
||||||
# Copyright 2006-2008 Robby Workman (http://rlworkman.net)
|
# Copyright 2006-2009 Robby Workman (http://rlworkman.net)
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=ink
|
PRGNAM=ink
|
||||||
VERSION=0.4.1
|
VERSION=0.5.0
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-march=i486 -mtune=i686"
|
SLKCFLAGS="-march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-march=i686 -mtune=i686"
|
SLKCFLAGS="-march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -54,11 +59,8 @@ find . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
# Patch the Makefile to fix DESTDIR and add PREFIX
|
patch -p1 < $CWD/ink-0.5.0-Makefile.patch
|
||||||
# Sent upstream 20070106 --rworkman
|
make EXTRA_CFLAGS="$SLKCFLAGS"
|
||||||
patch -p1 < $CWD/ink-0.4.1-Makefile.diff
|
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" make
|
|
||||||
make PREFIX=/usr DESTDIR=$PKG install
|
make PREFIX=/usr DESTDIR=$PKG install
|
||||||
|
|
||||||
strip --strip-unneeded $PKG/usr/bin/ink
|
strip --strip-unneeded $PKG/usr/bin/ink
|
||||||
|
@ -73,4 +75,4 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="ink"
|
PRGNAM="ink"
|
||||||
VERSION="0.4.1"
|
VERSION="0.5.0"
|
||||||
HOMEPAGE="http://ink.sourceforge.net/"
|
HOMEPAGE="http://ink.sourceforge.net/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/ink/ink-0.4.1.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/ink/ink-0.5.0.tar.gz"
|
||||||
MD5SUM="7234ef5ab8982417c6443767dd0f46cd"
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM="ddbbc4164384fc7185bc07b7602e4a8d"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Robby Workman"
|
MAINTAINER="Robby Workman"
|
||||||
EMAIL="rw@rlworkman.net"
|
EMAIL="rw@rlworkman.net"
|
||||||
APPROVED="BP{k}"
|
APPROVED="BP{k}"
|
||||||
|
|
Loading…
Reference in a new issue