aboutsummaryrefslogtreecommitdiffstats
path: root/main/openobex/APKBUILD
blob: bfdd3cc345e61c9e8a16c363269284aa6c0c8939 (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
45
46
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openobex
pkgver=1.6
pkgrel=0
pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
url="http://dev.zuckschwerdt.org/openobex/"
arch="all"
license="GPL LGPL"
depends=
depends_dev="libusb-compat-dev"
makedepends="bluez-dev libusb-compat-dev"
subpackages="$pkgname-dev libopenobex"
source="http://downloads.sourceforge.net/project/openobex/openobex/$pkgver/openobex-$pkgver-Source.tar.gz"

_builddir="$srcdir"/openobex-$pkgver-Source

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-apps \
		--enable-irda \
		--enable-bluetooth \
		--enable-usb \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

libopenobex() {
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libopenobex.so.* "$subpkgdir"/usr/lib/
}

md5sums="485734c0e5a6c4a7bd697a0989b67a56  openobex-1.6-Source.tar.gz"