summaryrefslogtreecommitdiffstats
path: root/main/obex-data-server/APKBUILD
blob: abbfc35e0bca40f30f2077bc5a885e629b28bf37 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=obex-data-server
pkgver=0.4.6
pkgrel=3
pkgdesc="D-Bus service for Obex access"
url="http://wiki.muiline.com/obex-data-server"
license="GPLv2+"
arch="all"
depends="!obexd"
subpackages="$pkgname-doc"
makedepends="dbus-glib-dev openobex-dev gtk+-dev libusb-compat-dev bluez-dev"
source="http://tadas.dailyda.com/software/obex-data-server-$pkgver.tar.gz
	obex-data-server-0.4.6-build-fixes-1.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd $srcdir/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-bip=gdk-pixbuf \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="961ca5db6fe9c97024e133cc6203cc4d  obex-data-server-0.4.6.tar.gz
7662a16e6b85b0e42a8a0fbf3ecd6d33  obex-data-server-0.4.6-build-fixes-1.patch"