summaryrefslogtreecommitdiff
path: root/libraries/libopensync
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libopensync')
-rw-r--r--libraries/libopensync/README3
-rw-r--r--libraries/libopensync/libopensync.SlackBuild29
-rw-r--r--libraries/libopensync/libopensync.info8
3 files changed, 28 insertions, 12 deletions
diff --git a/libraries/libopensync/README b/libraries/libopensync/README
index b0b3470274..e9d0230521 100644
--- a/libraries/libopensync/README
+++ b/libraries/libopensync/README
@@ -3,4 +3,5 @@ for syncing groups which can have two or more members. These members could
be just about any kind of database, where a plugin is available. OpenSync
is not only limited to sync PIM data.
-Requires sqlite (available from SlackBuilds.org).
+This requires sqlite, and you will also need swig if you want to build
+the python-bindings. Both are available from SlackBuilds.org
diff --git a/libraries/libopensync/libopensync.SlackBuild b/libraries/libopensync/libopensync.SlackBuild
index 307899c1de..1bedafbe0f 100644
--- a/libraries/libopensync/libopensync.SlackBuild
+++ b/libraries/libopensync/libopensync.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libopensync
-VERSION=0.36
+VERSION=0.22
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ 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
@@ -50,11 +52,24 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-cmake \
- -DCMAKE_C_FLAGS="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- || exit 1
+# Cmake-based build-system used by libopensync >= 0.30
+# Uncomment this if you want to build newer versions.
+# (also comment the "standard" build method below it)
+
+# cmake \
+# -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+# -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+# -DCMAKE_INSTALL_PREFIX=/usr
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -65,7 +80,7 @@ make install DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS CODING COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/libopensync/libopensync.info b/libraries/libopensync/libopensync.info
index 184d11f9c4..23e0e19511 100644
--- a/libraries/libopensync/libopensync.info
+++ b/libraries/libopensync/libopensync.info
@@ -1,8 +1,8 @@
PRGNAM="libopensync"
-VERSION="0.36"
+VERSION="0.22"
HOMEPAGE="http://www.opensync.org/"
-DOWNLOAD="http://www.opensync.org/download/releases/0.36/libopensync-0.36.tar.bz2"
-MD5SUM="d8cc7835663566e3626e959d8fb531bf"
+DOWNLOAD="http://www.opensync.org/download/releases/0.22/libopensync-0.22.tar.bz2"
+MD5SUM="f563ce2543312937a9afb4f8445ef932"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
-APPROVED="David Somero"
+APPROVED="rworkman"