aboutsummaryrefslogtreecommitdiffstats
path: root/testing/obexftp/APKBUILD
blob: 94ef144088cd580d3ee363ec6e091c18652646c6 (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
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=obexftp
pkgver=0.23
pkgrel=1
pkgdesc="A tool for transfer files to/from any OBEX enabled device"
url="http://openobex.triq.net/obexftp/obexftp"
arch="all"
license="GPL"
depends=
makedepends="pkgconfig openobex-dev bluez-dev"
subpackages="$pkgname-dev $pkgname-doc libobexftp"
source="http://downloads.sourceforge.net/sourceforge/openobex/obexftp-$pkgver.tar.bz2
	obexftp-0.23-gentoo.patch"

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

build() { 
	cd "$_builddir"
	./configure --prefix=/usr \
		--enable-bluetooth \
		--disable-perl \
		--disable-python \
		--disable-ruby || return 1
	make || return 1
}

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

libobexftp() {
	pkgdesc="OBEX shared library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib
}

md5sums="f20762061b68bc921e80be4aebc349eb  obexftp-0.23.tar.bz2
90b4fadb913673c339bbd04cebc4f9d2  obexftp-0.23-gentoo.patch"