summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a501938b39ffcf75cbbbf11fa1a394ea7e338af7 (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
# Maintainer : Vassilis Palassopoulos <palasso [at] gmail [dot] com>

pkgname=rkward
pkgver=0.7.0b
pkgrel=4
pkgdesc="An easy to use and easily extensible IDE/GUI for R"
url="https://rkward.kde.org/"
arch=('x86_64')
license=('GPL')
depends=('kdewebkit' 'ktexteditor' 'r')
makedepends=('kdoctools' 'extra-cmake-modules')
provides=('rkward')
conflicts=('rkward-git' 'rkward')
source=("http://download.kde.org/stable/rkward/${pkgver//b/}/src/rkward-$pkgver.tar.gz"
        "eject.patch")
md5sums=('a678008a571c7dacd5c13d62817ead7a'
         '413f3e17c32094800f393497ea8f10c1')

prepare() {
    cd $pkgname-$pkgver
    patch --forward --strip=1 --input="${srcdir}/eject.patch"
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DR_LIBDIR=/usr/lib/R/library
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  rm $pkgdir/usr/share/org.kde.syntax-highlighting/syntax/r.xml
}