desktop/rkward/PKGBUILD

41 lines
1.1 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# from AUR package http://aur.archlinux.org/packages.php?ID=4277
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=rkward
pkgver=0.5.7
pkgrel=1
pkgdesc="Easy to use transparent frontend to R for KDE4"
arch=('i686' 'x86_64')
url="http://rkward.sourceforge.net/"
license=('GPL')
depends=('kde-runtime' 'qt' 'r' 'docbook-xsl')
makedepends=('cmake' 'automoc4' 'icu')
categories=('education')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('c313d88baf63e29355eeba2e59a1637f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Dir for rkward R package
mkdir -p "${pkgdir}/usr/lib/R/library"
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DR_LIBDIR="/usr/lib/R/library"
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
# Some cleanup
rm -vf "${pkgdir}/usr/lib/R/library/R.css"
rm -vf "${pkgdir}/usr/share/apps/katepart/syntax/r.xml"
}