summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ef76cf8f2bf97e250f3c2244b0a191f11193db8 (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
51
52
# Maintainer: xiretza <xiretza+aur@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

pkgname=obexftp
pkgver=0.24.2
pkgrel=5
pkgdesc="A tool for transfer files to/from any OBEX enabled device"
arch=('x86_64')
url="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
license=('GPL')
provides=("obexfs=${pkgver}")
replaces=('obexfs')
conflicts=('obexfs')
depends=('openobex' 'expat' 'fuse2')
makedepends=('cmake' 'asciidoc' 'xmlto' 'swig' 'ruby' 'tk')
optdepends=('ruby: ruby bindings'
            'tk: TCL/Tk bindings')
options=('!makeflags' '!docs')
source=("http://downloads.sourceforge.net/openobex/${pkgname}-${pkgver}-Source.tar.gz"
        "explicitly-link-libbfb-and-libmulticobex.patch")
sha256sums=('d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3'
            'b2bdc9c9ad1894864d77531549be6f921f8d04344c64185ca053cc677c609a50')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}-Source"
  patch -p1 < "${srcdir}/explicitly-link-libbfb-and-libmulticobex.patch"
}

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
}