updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / r-cran-catools / PKGBUILD
bloba78fbc2941e9822dc6b7cf15dd769f21dc0f1d30
1 # Maintainer: Karol "Kenji Takahashi" Wozniak <wozniakk@gmail.com>
3 pkgname=r-cran-catools
4 pkgver=1.12
5 pkgrel=1
6 pkgdesc="Tools: moving window statistics, GIF, Base64, ROC AUC, etc."
7 url="http://cran.r-project.org/web/packages/caTools/index.html"
8 license=('GPL-3')
9 arch=('i686' 'x86_64')
10 makedepends=('gcc')
11 depends=('r' 'r-cran-bitops')
12 optdepends=()
13 source=(http://cran.r-project.org/src/contrib/caTools_$pkgver.tar.gz)
14 md5sums=('81ac6ffbe0bf595bcc0a4cb18f9471ab')
16 build() {
17     mkdir -p ${pkgdir}/usr/lib/R/library
18     cd ${srcdir}
19     R CMD INSTALL caTools -l ${pkgdir}/usr/lib/R/library
20     rm -f ${pkgdir}/usr/lib/R/library/R.css
21     for lic in "LICENSE" "LICENCE" "COPYING"; do
22         if [ -f ${srcdir}/caTools/${lic} ]; then
23             install -Dm644 ${srcdir}/caTools/${lic} ${pkgdir}/usr/share/licenses/r-cran-catools/${lic}
24         fi
25     done