diff options
author | Hans Goossen <goosseno@gmail.com> | 2010-05-11 22:55:09 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:09 +0200 |
commit | 186207106cb921ab0905282721ec58268b3efd0f (patch) | |
tree | bd3f2b7f063d9570926c6a9c5aabac2b606c7be7 /office/mdbtools | |
parent | a8391261de5264e4e192deb05dea99156906bd1e (diff) |
office/mdbtools: Added to 12.1 repository
Diffstat (limited to 'office/mdbtools')
-rw-r--r-- | office/mdbtools/README | 4 | ||||
-rw-r--r-- | office/mdbtools/mdbtools.SlackBuild | 115 | ||||
-rw-r--r-- | office/mdbtools/mdbtools.info | 8 | ||||
-rw-r--r-- | office/mdbtools/slack-desc | 19 |
4 files changed, 146 insertions, 0 deletions
diff --git a/office/mdbtools/README b/office/mdbtools/README new file mode 100644 index 0000000000000..bd31d8cd3bb35 --- /dev/null +++ b/office/mdbtools/README @@ -0,0 +1,4 @@ +The MDB Tools project is a effort to document the MDB file format +used in Microsoft's Access database package, and to provide a set +of tools and applications to make that data available on other +platforms. diff --git a/office/mdbtools/mdbtools.SlackBuild b/office/mdbtools/mdbtools.SlackBuild new file mode 100644 index 0000000000000..5ca3978e7c00a --- /dev/null +++ b/office/mdbtools/mdbtools.SlackBuild @@ -0,0 +1,115 @@ +#!/bin/sh + +# Slackware build script for gtksourceview-sharp-2.0 + +# Copyright 2008 Hans Goossen <goosseno@gmail.com> + +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''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 AUTHOR 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=mdbtools +VERSION=${VERSION:-0.5} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e # Exit on most errors + +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 . +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 {} \; + + + CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --enable-sql \ + --enable-static=no \ + --enable-shared=yes + +# Compile the application and install it into the $PKG directory +make +make install DESTDIR=$PKG + +# Strip binaries and libraries - this can be done with 'make install-strip' +# in many source trees, and that's usually acceptable if so, but if not, +# use this: +( 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 +) + +# Compress man pages +( 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 +) + +# Remove perllocal.pod and other special files that don't need to be installed, +# as they will overwrite what's already on the system. If this is not needed, +# remove it from the script. +( cd $PKG + # Remove 'special' files + find . -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f +) + +# Copy program documentation into the package +# Also, include the SlackBuild script in the documentation directory +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog NEWS README TODO HACKING $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make the package; be sure to leave it in $OUTPUT +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz + diff --git a/office/mdbtools/mdbtools.info b/office/mdbtools/mdbtools.info new file mode 100644 index 0000000000000..6510520ecd1d1 --- /dev/null +++ b/office/mdbtools/mdbtools.info @@ -0,0 +1,8 @@ +PRGNAM="mdbtools" +VERSION="0.5" +HOMEPAGE="http://mdbtools.sourceforge.net/" +DOWNLOAD="http://prdownloads.sourceforge.net/mdbtools/mdbtools-0.5.tar.gz" +MD5SUM="4a18bf96e67161101cade64526756d22" +MAINTAINER="Hans Goossen" +EMAIL="goosseno@gmail.com" +APPROVED="David Somero" diff --git a/office/mdbtools/slack-desc b/office/mdbtools/slack-desc new file mode 100644 index 0000000000000..c2f61297064d6 --- /dev/null +++ b/office/mdbtools/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------------------------------------------------------| +mdbtools: MDB Tools (a suite of libraries and utilities to read MDB files) +mdbtools: +mdbtools: The MDB Tools project is a effort to document the MDB file format +mdbtools: used in Microsoft's Access database package, and to provide a set +mdbtools: of tools and applications to make that data available on other +mdbtools: platforms. +mdbtools: +mdbtools: +mdbtools: http://mdbtools.sourceforge.net/ +mdbtools: +mdbtools: |