[arch-commits] Commit in openobex/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Sun May 26 17:06:18 UTC 2013


    Date: Sunday, May 26, 2013 @ 19:06:18
  Author: eric
Revision: 186449

upgpkg: openobex 1.7-1

Upstream update, Add cmake makedepends, Disable SMP build

Modified:
  openobex/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-26 15:45:47 UTC (rev 186448)
+++ PKGBUILD	2013-05-26 17:06:18 UTC (rev 186449)
@@ -4,31 +4,29 @@
 # Contributor: damir <damir at archlinux.org>
 
 pkgname=openobex
-pkgver=1.5
-pkgrel=3
+pkgver=1.7
+pkgrel=1
 pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
 url="http://dev.zuckschwerdt.org/openobex/"
 arch=('i686' 'x86_64')
 license=('GPL' 'LGPL')
 depends=('bluez' 'libusb-compat')
-options=('!libtool')
-source=("http://mirror.anl.gov/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('fce1b82eafb74bde54fe117372393ba8')
+makedepends=('cmake')
+options=('!libtool' '!makeflags')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-Source.tar.gz)
+md5sums=('11031f6f0b876bb6259bd27106491528')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
   [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
-
-  ./configure --prefix=/usr \
-              --enable-apps \
-              --enable-irda \
-              --enable-bluetooth \
-              --enable-usb
-  make
+  mkdir build
+  cd build
+  cmake ../${pkgname}-${pkgver}-Source \
+    -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON \
+    -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_SBINDIR=bin 
+  make all openobex-apps
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd build
   make DESTDIR="${pkgdir}" install
 }




More information about the arch-commits mailing list