summaryrefslogtreecommitdiffstats
path: root/libkdcraw
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-05-08 08:27:11 +0000
committer Eric Hameleers <alien@slackware.com>2008-05-08 08:27:11 +0000
commit317105ec387854f47e76b8e1f577d8283a670940 (patch)
tree0fe89c3af493044933e1ea1bc67cea962c024e70 /libkdcraw
parent77956f37fc71762386d4da04f40c344828e20c38 (diff)
downloadasb-317105ec387854f47e76b8e1f577d8283a670940.tar.gz
asb-317105ec387854f47e76b8e1f577d8283a670940.tar.xz
Add TAG=alien ; change SRCDIR determination ; add SlackBuild to docdir
Also version upgrade to 0.1.4
Diffstat (limited to 'libkdcraw')
-rwxr-xr-xlibkdcraw/build/libkdcraw.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/libkdcraw/build/libkdcraw.SlackBuild b/libkdcraw/build/libkdcraw.SlackBuild
index 53fc5a05..00c84d64 100755
--- a/libkdcraw/build/libkdcraw.SlackBuild
+++ b/libkdcraw/build/libkdcraw.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright (c) 2007,2008 Eric Hameleers <alien@slackware.com>
+# Copyright (c) 2007-2008 Eric Hameleers <alien@slackware.com>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -34,6 +34,8 @@
# * Initial build.
# 0.1.3-1: 01/Jan/2008 by Eric Hameleers <alien@slackware.com>
# * Update
+# 0.1.4-1: 08/may/2008 by Eric Hameleers <alien@slackware.com>
+# * Update for Slackware 12.1
#
# Run 'sh libkdcraw.SlackBuild --cleanup' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -44,18 +46,17 @@
# Set initial variables:
PRGNAM=libkdcraw
-VERSION=${VERSION:-0.1.3}
+VERSION=${VERSION:-0.1.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
+TAG=${TAG:-alien}
DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS PACKAGING README RELEASE.rev"
KDEPREF=$(kde-config --prefix)
# Where do we look for sources?
-CWD=$(pwd)
-SRCDIR=$(dirname $0)
-[ "${SRCDIR:0:1}" == "." ] && SRCDIR=${CWD}/${SRCDIR}
+SRCDIR=$(cd $(dirname $0); pwd)
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
TMP=${TMP:-/tmp/build}
@@ -64,7 +65,7 @@ OUTPUT=${OUTPUT:-/tmp}
# Input URL: http://dl.sourceforge.net/kipi/libkdcraw-0.1.1.tar.bz2
SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2"
-SRCURL="http://dl.sourceforge.net/kipi/${PRGNAM}-${VERSION}.tar.bz2"
+SRCURL="http://downloads.sourceforge.net/kipi/${PRGNAM}-${VERSION}.tar.bz2"
##
## --- with a little luck, you won't have to edit below this point --- ##
@@ -107,10 +108,10 @@ esac
# Create working directories:
mkdir -p $TMP/tmp-$PRGNAM # location to build the source
-rm -rf $TMP/tmp-$PRGNAM/* # we remove the remnants of previous build
-mkdir -p $PKG # place for the package to be built
-rm -rf $PKG/* # We always erase old package's contents:
-mkdir -p $OUTPUT # place for the package to be saved
+rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build
+mkdir -p $PKG # place for the package to be built
+rm -rf $PKG/* # erase old package's contents
+mkdir -p $OUTPUT # place for the package to be saved
# Source file availability:
if ! [ -f ${SOURCE} ]; then
@@ -185,7 +186,8 @@ mkdir -p $PKG/usr/bin
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
-chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
+cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc -type f -exec chmod 644 {} \;
# Compress the man page(s):
if [ -d $PKG/usr/man ]; then
@@ -208,11 +210,11 @@ fi
# Build the package:
cd $PKG
-makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
+makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
-md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5
+md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5
cd -
-cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt
+cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
# Clean up the extra stuff:
if [ "$P1" = "--cleanup" ]; then