aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-26 07:44:18 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2012-09-26 07:57:54 +0200
commitb32019f8714332a228e6f1eaeb08e6f262118183 (patch)
tree1487b8a5739791749ba86141a7fe9bf4ae9a5750 /libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild
parentf751cc741a40d5b4fa961a8d4898c6da85aa557c (diff)
libraries/libvmime-zarafa: Updated for version 0.9.2_svn603.
Modified library name to libvmime_zarafa, rewritten name.patch Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild')
-rw-r--r--libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild33
1 files changed, 13 insertions, 20 deletions
diff --git a/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild b/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild
index 3080456b97dc6..16102861f7174 100644
--- a/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild
+++ b/libraries/libvmime-zarafa/libvmime-zarafa.SlackBuild
@@ -27,7 +27,7 @@
# revision date 2011/09/16
PRGNAM=libvmime-zarafa
-VERSION=${VERSION:-0.9.1_p20110328}
+VERSION=${VERSION:-0.9.2_svn603}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,6 +41,7 @@ fi
PRGSRC=libvmime
SRCVERSION=$(echo $VERSION | cut -f1 -d_)
+TARVERSION=$(echo $VERSION | tr _ +)
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -66,27 +67,21 @@ set -e
rm -rf $TMP/$PRGSRC-$SRCVERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGSRC-$SRCVERSION.tar.bz2
+tar xvf $CWD/$PRGSRC-$TARVERSION.tar.bz2
cd $PRGSRC-$SRCVERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Apply zarafa patches in order of release-date
patches="\
- 0.8.1-charset-catch \
- 0.8.1-attachfnamelen \
- 0.8.1-header-value-on-next-line \
- highchar-filename \
- 0.8.1-unicode-1-1-utf-7-charset \
- fullname-without-email-address \
- 0.9.0-undisclosed-recipients \
- 0.9.2-infinite-loop \
- flush-iconv"
+ mixed-qp-in-parameter \
+ 0.9.2-header-value-on-next-line \
+ 0.9.2-qp-in-buffers"
for patch in $patches; do
- patch -p1 < $CWD/vmime-$patch.diff
+ patch -p1 < $CWD/patches/vmime-$patch.diff
done
-# Patch "configure" & src/Makefile.in to rename the library to "libvmime-zarafa"
+# Patch to rename the library to "libvmime_zarafa"
patch -p1 < $CWD/name.patch
EXTRA_CFLAGS=$SLKCFLAGS \
@@ -106,13 +101,11 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
# correct program name.
# We're moving some files so that this special version of libvmime
# can coexist with the standard version, if needed.
-mkdir -p $PKG/usr/include/vmime-zarafa
-mv $PKG/usr/include/vmime $PKG/usr/include/vmime-zarafa
-
-mv $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime.pc \
- $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime-zarafa.pc
-sed -i "s/vmime/vmime-zarafa/g" \
- $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime-zarafa.pc
+mkdir -p $PKG/usr/include/vmime
+mv $PKG/usr/include/vmime_zarafa/* $PKG/usr/include/vmime/
+mv $PKG/usr/include/vmime $PKG/usr/include/vmime_zarafa/
+sed -i "s|{includedir}/|{includedir}/vmime_zarafa|" \
+ $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/vmime_zarafa.pc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild