aboutsummaryrefslogtreecommitdiff
path: root/libraries/libmirage/libmirage.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libmirage/libmirage.SlackBuild')
-rw-r--r--libraries/libmirage/libmirage.SlackBuild28
1 files changed, 18 insertions, 10 deletions
diff --git a/libraries/libmirage/libmirage.SlackBuild b/libraries/libmirage/libmirage.SlackBuild
index 4bdf0b2434321..ee4d0f7aa3eb1 100644
--- a/libraries/libmirage/libmirage.SlackBuild
+++ b/libraries/libmirage/libmirage.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for libmirage
#
-# Copyright 2008 Niklas "Nille" �kerstr�m
+# Copyright 2008 Niklas "Nille" Åkerström
+# Copyright 2010 Niels Horn
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,17 +23,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Maintained as of version 1.3.0 by Niels Horn <niels.horn@gmail.com>
+# Revision date: 2010/11/20
+
PRGNAM=libmirage
-VERSION=1.1.1
+VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -62,11 +64,15 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go+r-w .
+# Patch the parsers for three mime-types that conflict with the freedesktop
+# standard included in Slackware
+patch -p1 < $CWD/mimetypes.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -79,10 +85,16 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+# Remove some mime-types to avoid duplicates with freedesktop standards
+for ext in cue iso toc; do
+ rm $PKG/usr/share/mime/packages/libmirage-image-$ext.xml
+done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS ChangeLog COPYING INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
-( cd $PKG/usr/doc/$PRGNAM-$VERSION ; ln -sf /usr/share/gtk-doc/html/$PRGNAM html )
+ln -sf ../../share/gtk-doc/html/$PRGNAM \
+ $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -92,7 +104,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-
-if [ "$1" = "--cleanup" ]; then
- rm -rf $PKG $TMP/$PRGNAM-$VERSION
- fi