aboutsummaryrefslogtreecommitdiffstats
path: root/testing/obexd/APKBUILD
blob: acc2ef5c3ad83b807a7089e9882aa8e6c09d1c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=obexd
pkgver=0.37
pkgrel=2
pkgdesc="D-Bus service for Obex Server"
url="http://www.bluez.org/"
arch="x86 x86_64"
license="GPL2"
depends="!obex-data-server"
subpackages="$pkgname-client"
makedepends="dbus-glib-dev openobex-dev glib-dev bluez-dev libical-dev"
source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2"

build () 
{ 
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libexecdir=/usr/lib/obexd \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
}

_mv_files() {
	local i
	for i in "$@"; do
		mkdir -p "$subpkgdir"/${i%/*}
		mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
	done
}

client() {
	pkgdesc="D-Bus service for Obex Client access"
	depends=
	cd "$pkgdir"
	_mv_files usr/lib/obexd/obex-client \
		usr/share/dbus-*/services/obex-client.service
}

md5sums="3126eced7f9d36aa52c3684bb31421e8  obexd-0.37.tar.bz2"