summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a496005028c7ef55fb8f21e4c3567eb6911df905 (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
# Maintainer: Martin

_module=kio-sftp-kde4
pkgname=kde2-${_module}-git
pkgver=2.2.2.r18.f2e832e
pkgrel=1
pkgdesc="Backport of the KDE4 version of kio-sftp to KDE 2"
arch=(i686 x86_64)
url="https://invent.kde.org/sandsmark/kde2-kio-sftp"
license=("GPL2")
groups=(kde2)
depends=(kde2-kdelibs-git libssh)
makedepends=(cmake git)
provides=(kde2-${_module} kde2-kio-sftp)
conflicts=(kde2-${_module} kde2-kio-sftp)
options+=(libtool)

# Mirror
source=("git+https://invent.kde.org/sandsmark/kde2-kio-sftp.git")

md5sums=('SKIP')

pkgver() {
  cd kde2-kio-sftp
  printf "2.2.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  if [[ -d build ]]; then
    rm -rf build && mkdir build
  else
    mkdir build
  fi
}

build() {
  cd build
  cmake "$srcdir"/kde2-kio-sftp -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir/" install
  cd "$srcdir"/kde2-kio-sftp
}