desktop/rkward/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2013-11-13 13:53:52 +08:00
# Contributions from AUR: http://aur.archlinux.org/packages.php?ID=4277
2010-10-05 04:37:43 +08:00
pkgname=rkward
2016-10-16 10:21:44 +08:00
pkgver=0.6.5
2016-01-27 06:52:20 +08:00
pkgrel=1
2010-10-05 04:37:43 +08:00
pkgdesc="Easy to use transparent frontend to R for KDE4"
2013-11-13 13:53:52 +08:00
arch=('x86_64')
2010-10-05 04:37:43 +08:00
url="http://rkward.sourceforge.net/"
license=('GPL')
2015-03-07 20:52:05 +08:00
depends=('kde-baseapps-katepart' 'kde-runtime' 'r' 'docbook-xsl' 'docbook-xml')
2013-11-13 13:53:52 +08:00
categories=('programming')
2016-01-27 06:52:20 +08:00
screenshot="http://sourceforge.net/apps/mediawiki/rkward/nfs/project/r/rk/rkward/0/0a/RKWard_060_450.png"
2011-07-04 01:24:16 +08:00
makedepends=('cmake' 'automoc4' 'icu')
2015-03-07 20:52:05 +08:00
source=(http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.gz)
2016-10-16 10:21:44 +08:00
sha256sums=('3fc5acb48ce717dee8fbbe32973ea4c61f30c335bd18a75471142b19b436a032')
2013-11-13 13:53:52 +08:00
2010-10-05 04:37:43 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=Release \
-DR_LIBDIR="/usr/lib/R/library" \
..
2010-10-05 04:37:43 +08:00
make
}
package(){
2013-11-13 13:53:52 +08:00
cd "${srcdir}/${pkgname}-${pkgver}/build"
make DESTDIR="$pkgdir" install
2011-07-04 01:24:16 +08:00
# Some cleanup
2010-10-05 04:37:43 +08:00
rm -vf "${pkgdir}/usr/lib/R/library/R.css"
rm -vf "${pkgdir}/usr/share/apps/katepart/syntax/r.xml"
2013-11-13 13:53:52 +08:00
rm -vf "${pkgdir}/usr/share/doc/kde/html/en/rkward/common"
2010-10-05 04:37:43 +08:00
}