summaryrefslogtreecommitdiff
path: root/extra/openobex/PKGBUILD
blob: e5405c905e00542cf64760ecf04f5a9a25773bd9 (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
# $Id: PKGBUILD 150568 2012-02-18 15:04:06Z pierre $
# Maintainer: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: damir <damir@archlinux.org>

pkgname=openobex
pkgver=1.5
pkgrel=3
pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
url="http://dev.zuckschwerdt.org/openobex/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
depends=('bluez' 'libusb-compat')
options=('!libtool')
source=("http://mirror.anl.gov/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2")
md5sums=('fce1b82eafb74bde54fe117372393ba8')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"

  ./configure --prefix=/usr \
              --enable-apps \
              --enable-irda \
              --enable-bluetooth \
              --enable-usb
  make
}

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