updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / r-cran-sweavelistingutils / PKGBUILD
blobcf68b04b6727d34b40a0613029868c1329074f5a
1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
2 pkgname=r-cran-sweavelistingutils
3 pkgver=0.5
4 pkgrel=1
5 pkgdesc="Utilities for Sweave together with TeX listings package"
6 url="http://cran.r-project.org/web/packages/SweaveListingUtils/index.html"
7 license=('LGPL-3')
8 arch=('i686' 'x86_64')
9 makedepends=('gcc' 'gcc-fortran')
10 depends=('r' 'r-cran-startupmsg')
11 optdepends=('r-cran-distr')
12 source=(http://cran.r-project.org/src/contrib/SweaveListingUtils_0.5.tar.gz)
13 build() {
14     mkdir -p ${pkgdir}/usr/lib/R/library
15     cd ${srcdir}
16     R CMD INSTALL SweaveListingUtils -l ${pkgdir}/usr/lib/R/library
17     rm -f ${pkgdir}/usr/lib/R/library/R.css
18     for lic in "LICENSE" "LICENCE" "COPYING"; do
19         if [ -f ${srcdir}/SweaveListingUtils/${lic} ]; then
20             install -Dm644 ${srcdir}/SweaveListingUtils/${lic} ${pkgdir}/usr/share/licenses/r-cran-sweavelistingutils/${lic}
21         fi
22     done
24 md5sums=('ca294f8fdda72ea50dedfecbebfa5219')