summaryrefslogtreecommitdiff
path: root/extra/obexftp/PKGBUILD
blob: 6d7dfbf7bbdbdb51434a07735acb3d601768dad5 (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
# $Id: PKGBUILD 186963 2013-06-01 15:32:07Z eric $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=obexftp
pkgver=0.24
pkgrel=1
pkgdesc="A tool for transfer files to/from any OBEX enabled device"
arch=('i686' 'x86_64')
url="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
license=('GPL')
depends=('openobex')
makedepends=('cmake' 'asciidoc' 'xmlto' 'fuse' 'swig' 'ruby' 'tk')
optdepends=('ruby: ruby bindings'
            'tk: TCL/Tk bindings')
options=('!makeflags' '!libtool' '!docs')
source=("http://downloads.sourceforge.net/openobex/${pkgname}-${pkgver}-Source.tar.gz")
md5sums=('31a50dbbd09c63cbb5399772aaff7936')

build() {
  cd "${srcdir}/"

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver}-Source \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_SKIP_RPATH=ON \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_SBINDIR=bin \
    -DENABLE_PERL=YES \
    -DENABLE_PYTHON=YES \
    -DENABLE_RUBY=YES \
    -DENABLE_TCL=YES
  make doc
}

package() {
  cd "${srcdir}/build"

  make DESTDIR="${pkgdir}" install
}