updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / r-cran-bitops / PKGBUILD
blobd08b428386dd1a724de84bdc8d75bfb1aaf88f8d
1 # Maintainer: Karol "Kenji Takahashi" Wozniak <wozniakk@gmail.com>
3 pkgname=r-cran-bitops
4 pkgver=1.0_4.1
5 pkgrel=1
6 pkgdesc="Functions for Bitwise operations"
7 url="http://cran.r-project.org/web/packages/bitops/index.html"
8 license=('GPL version 2 or later')
9 arch=('i686' 'x86_64')
10 makedepends=('gcc')
11 depends=('r')
12 optdepends=()
13 source=(http://cran.r-project.org/src/contrib/bitops_1.0-4.1.tar.gz)
14 md5sums=('81107518a0cafce266e82fc8571732da')
16 build() {
17     mkdir -p ${pkgdir}/usr/lib/R/library
18     cd ${srcdir}
19     R CMD INSTALL bitops -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}/bitops/${lic} ]; then
23             install -Dm644 ${srcdir}/bitops/${lic} ${pkgdir}/usr/share/licenses/r-cran-bitops/${lic}
24         fi
25     done