From 7cd564d1e9657febf970765ffd43fcee8abe7ff5 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 31 May 2014 03:57:01 +0000 Subject: Sat May 31 03:30:32 UTC 2014 --- community/libopensync/PKGBUILD | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'community/libopensync/PKGBUILD') diff --git a/community/libopensync/PKGBUILD b/community/libopensync/PKGBUILD index 57530da8a..67e9d6bfb 100644 --- a/community/libopensync/PKGBUILD +++ b/community/libopensync/PKGBUILD @@ -1,32 +1,38 @@ -# $Id: PKGBUILD 66195 2012-02-23 03:06:28Z spupykin $ +# $Id: PKGBUILD 112239 2014-05-30 12:34:58Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Hauke Wesselmann # Contributor: Laurie Clark-Michalek pkgname=libopensync pkgver=0.39 -pkgrel=4 +pkgrel=5 pkgdesc='Stable version of the opensync synchronisation framework' url='http://www.opensync.org' license=('LGPL') arch=('i686' 'x86_64') makedepends=('python2' 'cmake' 'chrpath') -depends=('glib2' 'libxml2' 'sqlite3' 'libxslt') +depends=('glib2' 'libxml2' 'sqlite' 'libxslt') source=(http://www.opensync.org/download/releases/$pkgver/$pkgname-$pkgver.tar.bz2) md5sums=('733211e82b61e2aa575d149dda17d475') -build() { +prepare() { cd $srcdir/$pkgname-$pkgver - #disable treating of warnings as errors find /$(pwd) -type f -exec sed -i 's/-Werror//g' '{}' \; + sed -i 's|glib/gmem.h|glib.h|' opensync/common/opensync_list.c +} +build() { + cd $srcdir/$pkgname-$pkgver mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr $srcdir/$pkgname-$pkgver make - make DESTDIR=$pkgdir install +} +package() { + cd $srcdir/$pkgname-$pkgver/build + make DESTDIR=$pkgdir install find $pkgdir -name \*.so -type f -exec chrpath -d {} \; find $pkgdir -perm /ugo+x -type f -exec chrpath -d {} \; } -- cgit v1.2.3-54-g00ecf