aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openobex/APKBUILD
blob: 0ad92cc24ea2f134c1a5a2dc84c7970858733459 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openobex
pkgver=1.5
pkgrel=0
pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
url="http://dev.zuckschwerdt.org/openobex/"
arch="x86 x86_64"
license="GPL LGPL"
depends=
makedepends="bluez-dev libusb-dev"
subpackages="$pkgname-dev libopenobex"
source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--enable-apps \
		--enable-irda \
		--enable-bluetooth \
		--enable-usb \
		|| return 1
	make || return 1
}

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

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

md5sums="fce1b82eafb74bde54fe117372393ba8  openobex-1.5.tar.bz2"