summaryrefslogtreecommitdiffstats
path: root/main/openobex/APKBUILD
blob: b9800592abae995479def062baa9d5882b8fd026 (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.7.1
pkgrel=0
pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
url="http://dev.zuckschwerdt.org/openobex/"
arch="all"
license="GPL LGPL"
depends=
depends_dev="libusbx-dev"
makedepends="$depends_dev bluez-dev cmake udev-dev libxml2-utils
	docbook-xsl"
subpackages="$pkgname-dev $pkgname-doc $pkgname-apps"
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"
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		|| return 1
	make && make openobex-apps || return 1
}

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

apps() {
	pkgdesc="Applications for using OBEX"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="3181bfed9cb7db591605391068cb0085  openobex-1.7.1-Source.tar.gz"
sha256sums="3b264665d90901ea4ff720332ffb9b6d1d8f67187463d3a3279caddc7205ea57  openobex-1.7.1-Source.tar.gz"
sha512sums="df38b363bd4c6eb6c0181fc7858fb03ac2bdfa85d8496faaa514d5cc4473b33c883956d4e1c94c3fefa5e44e5eed35a8dfcab889ce6ca8c29694f2b18334754e  openobex-1.7.1-Source.tar.gz"