updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / rkward / PKGBUILD
blobf9239e6a220931728e27f2f85f14e3926c9a4de5
1 # Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
3 pkgname=rkward
4 pkgver=0.5.7
5 pkgrel=1
6 pkgdesc="Easy to use transparent frontend to R for KDE4"
7 arch=('i686' 'x86_64')
8 url="http://rkward.sourceforge.net/"
9 license=('GPL')
10 depends=('kdebase-runtime' 'r>=2.8.0' 'docbook-xml' 'docbook-xsl')
11 makedepends=('cmake' 'automoc4')
12 conflicts=('kdemod-rkward<0.5.0')
13 install="${pkgname}.install"
14 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
15 sha256sums=('623e3dc89faf31502e1738c76f6e1138054ca8fb99701862cf872040691cbbf4')
17 build() {
18         cd "${srcdir}/${pkgname}-${pkgver}"
19         # Dir for rkward R package
20         #mkdir -p "${pkgdir}/usr/lib/R/library"
21         cmake -DCMAKE_INSTALL_PREFIX="/usr" \
22                 -DR_LIBDIR="/usr/lib/R/library"
23         make 
26 package(){
27         cd "${srcdir}/${pkgname}-${pkgver}"
28         make DESTDIR="${pkgdir}" install
30         # Some cleanup
31         rm -vf "${pkgdir}/usr/lib/R/library/R.css"
32         rm -vf "${pkgdir}/usr/share/apps/katepart/syntax/r.xml"
33         rm -vf "${pkgdir}/usr/share/doc/kde/html/en/rkward/common"