summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d18c513c39473ac04a2117918dbc7b08d80c893 (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
53
# Maintainer:Ben Booth <benwbooth@gmail.com>
pkgname=kiofuse-svn
pkgver=1360808
pkgrel=2
pkgdesc="KioFuse allows you to mount remote directories into the root hierarchy of your local file system, thereby exposing KDE's advanced access capabilities (SSH, SAMBA/Windows, FTP, TAR/GZip/BZip2, WebDav, etc) to POSIX-compliant applications."
arch=('i686' 'x86_64')
url="http://techbase.kde.org/Projects/KioFuse"
license=('LGPL')
groups=()
depends=('kdelibs>=4')
makedepends=('subversion' 'cmake')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('add-missing-includes.patch')
noextract=()
md5sums=('fb3e710a62f34f79fa1166d3e25a5eef')

_svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/libs/kiofuse
_svnmod=kiofuse

build() {
  cd "$srcdir"
  msg "Connecting to SVN server...."

  if [[ -d "$_svnmod/.svn" ]]; then
    (cd "$_svnmod" && svn up -r "$pkgver")
  else
    svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_svnmod-build"
  svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  patch -p0 -i ../add-missing-includes.patch

  cmake .
  make
}

package() {
  cd "$srcdir/$_svnmod-build"
  install -Dm755 kiofuse "$pkgdir/usr/bin/kiofuse"
}

# vim:set ts=2 sw=2 et: