diff options
author | Mark Walling <mark@markwalling.org> | 2010-05-11 20:00:25 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 20:00:25 +0200 |
commit | 96e31449614f1da2fb9138b6928c34cffa4cf76c (patch) | |
tree | 618603e8c912df8aed026a0215ec88f37f579b8d /development/icoutils | |
parent | 0cdd44a5f9839278b9d6d85258d946dd1d9d003c (diff) |
development/icoutils: Added to 12.0 repository
Diffstat (limited to 'development/icoutils')
-rw-r--r-- | development/icoutils/README | 7 | ||||
-rw-r--r-- | development/icoutils/icoutils.SlackBuild | 85 | ||||
-rw-r--r-- | development/icoutils/icoutils.info | 8 | ||||
-rw-r--r-- | development/icoutils/slack-desc | 19 |
4 files changed, 119 insertions, 0 deletions
diff --git a/development/icoutils/README b/development/icoutils/README new file mode 100644 index 000000000000..77416b72ba13 --- /dev/null +++ b/development/icoutils/README @@ -0,0 +1,7 @@ +icoutils (Windows Icon and Cursor Utilities) + +The icoutils are a set of program for extracting and converting +images in Microsoft Windows(R) icon and cursor files. + +Homepage: http://www.nongnu.org/icoutils/ + diff --git a/development/icoutils/icoutils.SlackBuild b/development/icoutils/icoutils.SlackBuild new file mode 100644 index 000000000000..1834671d55b4 --- /dev/null +++ b/development/icoutils/icoutils.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for icoutils +# Copyright (c) 2008, Written by Mark Walling <mark@markwalling.com> + +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "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 COPYRIGHT +# OWNER OR CONTRIBUTORS 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. + +PRGNAM=icoutils +VERSION=0.26.0 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="AUTHORS COPYING ChangeLog NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $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 diff --git a/development/icoutils/icoutils.info b/development/icoutils/icoutils.info new file mode 100644 index 000000000000..acc43a07addd --- /dev/null +++ b/development/icoutils/icoutils.info @@ -0,0 +1,8 @@ +PRGNAM="icoutils" +VERSION="0.26.0" +HOMEPAGE="http://www.nongnu.org/icoutils/" +DOWNLOAD="http://savannah.nongnu.org/download/icoutils/icoutils-0.26.0.tar.gz" +MD5SUM="5494ee42a9dad562b49c6b8721f973e8" +MAINTAINER="Mark Walling" +EMAIL="mark@markwalling.org" +APPROVED="David Somero" diff --git a/development/icoutils/slack-desc b/development/icoutils/slack-desc new file mode 100644 index 000000000000..ca2e84132116 --- /dev/null +++ b/development/icoutils/slack-desc @@ -0,0 +1,19 @@ +# 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 ':'. + + |-----handy-ruler----------------------------------------------------| +icoutils: icoutils (Windows Icon and Cursor Utilities) +icoutils: +icoutils: The icoutils are a set of program for extracting and converting +icoutils: images in Microsoft Windows(R) icon and cursor files. +icoutils: +icoutils: Homepage: http://www.nongnu.org/icoutils/ +icoutils: +icoutils: +icoutils: +icoutils: +icoutils: |