Date: Tuesday, July 13, 2010 @ 06:41:10 Author: andrea Revision: 85417
upgpkg: obexd 0.29-1 upstream release; added obexd server in a new package (FS#19154) Modified: obexd/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-07-13 06:43:05 UTC (rev 85416) +++ PKGBUILD 2010-07-13 10:41:10 UTC (rev 85417) @@ -2,27 +2,40 @@ # Maintainer: Andrea Scarpino <and...@archlinux.org> # Contributor: Geoffroy Carrier <geoff...@archlinux.org> -pkgname=obexd -pkgver=0.28 +pkgbase=obexd +pkgname=('obexd-client' 'obexd-server') +pkgver=0.29 pkgrel=1 -pkgdesc="D-Bus service providing high-level OBEX client and server side functionality" url="http://www.bluez.org/" arch=('i686' 'x86_64') license=('GPL2') -depends=('openobex' 'glib2') -makedepends=('dbus-glib' 'libical') -source=(http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2) -md5sums=('a157fcca6e8af077c5f2037c72d617cd') +makedepends=('openobex' 'dbus-glib' 'libical') +source=(http://www.kernel.org/pub/linux/bluetooth/${pkgbase}-${pkgver}.tar.bz2) +md5sums=('3e90cff18f1339a44adde2c920f95393') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr \ - --libexecdir=/usr/lib/obexd \ - --disable-server + cd "${srcdir}/${pkgbase}-${pkgver}" + ./configure --prefix=/usr make } -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install +package_obexd-client() { + pkgdesc="D-Bus service providing high-level OBEX client side functionality" + depends=('openobex' 'glib2') + provides=('obexd') + replaces=('obexd') + conflicts=('obexd') + + cd "${srcdir}/${pkgbase}-${pkgver}/client" + install -Dm755 obex-client ${pkgdir}/usr/lib/obex-client + install -Dm644 obex-client.service ${pkgdir}/usr/share/dbus-1/services/obex-client.service } + +package_obexd-server() { + pkgdesc="D-Bus service providing high-level OBEX server side functionality" + depends=('openobex' 'glib2' 'libical') + + cd "${srcdir}/${pkgbase}-${pkgver}/src" + install -Dm755 obexd ${pkgdir}/usr/lib/obexd + install -Dm644 obexd.service ${pkgdir}/usr/share/dbus-1/services/obexd.service +}