updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / r-cran-quadprog / PKGBUILD
bloba1b99a945673a650b503fb3ab51e710a2862f966
1 # Maintainer: Tom Kazimiers <tom@voodoo-arts.net>
2 pkgname=r-cran-quadprog
3 pkgver=1.5_4
4 pkgrel=1
5 pkgdesc="Functions to solve Quadratic Programming Problems from within the R project environment."
6 url="http://cran.r-project.org/web/packages/quadprog"
7 license=('GPL-2')
8 arch=('i686' 'x86_64')
9 makedepends=('gcc' 'gcc-fortran' 'r')
10 depends=('r' )
11 optdepends=()
12 source=(http://cran.r-project.org/src/contrib/quadprog_1.5-4.tar.gz)
13 build() {
14     mkdir -p ${pkgdir}/usr/lib/R/library
15     cd ${srcdir}
16     R CMD INSTALL quadprog -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}/quadprog/${lic} ]; then
20             install -Dm644 ${srcdir}/quadprog/${lic} ${pkgdir}/usr/share/licenses/r-cran-quadprog/${lic}
21         fi
22     done
24 md5sums=('34dd39e1131d4b5f8d458deeaf485335')