summaryrefslogtreecommitdiff
path: root/extra/obexd/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/obexd/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/obexd/PKGBUILD')
-rw-r--r--extra/obexd/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/extra/obexd/PKGBUILD b/extra/obexd/PKGBUILD
new file mode 100644
index 000000000..10c2a4a46
--- /dev/null
+++ b/extra/obexd/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 106996 2011-01-20 12:27:07Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
+
+pkgbase=obexd
+pkgname=('obexd-client' 'obexd-server')
+pkgver=0.40
+pkgrel=1
+url="http://www.bluez.org/"
+arch=('i686' 'x86_64')
+license=('GPL2')
+makedepends=('openobex' 'libical')
+source=("http://www.kernel.org/pub/linux/bluetooth/${pkgbase}-${pkgver}.tar.bz2")
+md5sums=('f303592b7664b246965c1d6e9361c919')
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/obexd
+ make
+}
+
+package_obexd-client() {
+ pkgdesc="D-Bus service providing high-level OBEX client side functionality"
+ depends=('openobex' 'glib2')
+ provides=("obexd=${pkgver}")
+ replaces=('obexd')
+ conflicts=('obexd')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/client"
+ install -m755 -d "${pkgdir}/usr/lib/obexd"
+ install -m755 -d "${pkgdir}/usr/share/dbus-1/services"
+ install -m755 obex-client "${pkgdir}/usr/lib/obexd/"
+ install -m644 obex-client.service "${pkgdir}/usr/share/dbus-1/services/"
+}
+
+package_obexd-server() {
+ pkgdesc="D-Bus service providing high-level OBEX server side functionality"
+ depends=('openobex' 'glib2' 'libical')
+ conflicts=('obex-data-server')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+ install -m755 -d "${pkgdir}/usr/lib/obexd"
+ install -m755 -d "${pkgdir}/usr/share/dbus-1/services"
+ install -m755 obexd "${pkgdir}/usr/lib/obexd/"
+ install -m644 obexd.service "${pkgdir}/usr/share/dbus-1/services/"
+}