mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-genepop: fix package
This commit is contained in:
parent
de694849c1
commit
14f3698664
3 changed files with 25 additions and 14 deletions
|
@ -3,32 +3,39 @@
|
||||||
_pkgname=genepop
|
_pkgname=genepop
|
||||||
_pkgver=1.2.2
|
_pkgver=1.2.2
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=${_pkgver//[:-]/.}
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc='Population Genetic Data Analysis Using Genepop'
|
pkgdesc="Population Genetic Data Analysis Using Genepop"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://cran.r-project.org/package=${_pkgname}"
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
license=('CECILL-2.0')
|
license=('CECILL-2.0')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-rcpp
|
r-rcpp
|
||||||
r-rcppprogress
|
|
||||||
r-stringr
|
r-stringr
|
||||||
)
|
)
|
||||||
|
makedepends=(
|
||||||
|
r-rcppprogress
|
||||||
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
r-knitr
|
r-knitr
|
||||||
r-shiny
|
r-shiny
|
||||||
r-testthat
|
r-testthat
|
||||||
)
|
)
|
||||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
|
||||||
sha256sums=('a')
|
"$_pkgname-LICENSE::http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt")
|
||||||
|
md5sums=('5fc72670d5c6237dfb373ec79f569bea'
|
||||||
|
'599cf91b33571e942d3ba5f9623b8011')
|
||||||
|
b2sums=('4934ef20f980c277217c618667b19c5e73c47e3dec8b7201281c3c0eeb057a365fbc55b16115d338b69419568f64e8c34e6c58cc6950760ecf0e4d90c86e81d9'
|
||||||
|
'ff97dacc39b8597e670dbaf5bc0f0e4db73eada273708433fc227fa72c054a30a67dbc7b2416089d68f09ab65da721e5b30711022c41047d9cf706731d568038')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
mkdir build
|
||||||
|
R CMD INSTALL -l build "$_pkgname"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||||
|
|
||||||
|
install -Dm644 "$_pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
|
@ -7,7 +7,10 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||||
from lilac_r_utils import r_pre_build
|
from lilac_r_utils import r_pre_build
|
||||||
|
|
||||||
def pre_build():
|
def pre_build():
|
||||||
r_pre_build(_G)
|
r_pre_build(
|
||||||
|
_G,
|
||||||
|
expect_license = "CeCILL-2",
|
||||||
|
)
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -4,8 +4,9 @@ maintainers:
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
repo_depends:
|
repo_depends:
|
||||||
- r-rcpp
|
- r-rcpp
|
||||||
- r-rcppprogress
|
|
||||||
- r-stringr
|
- r-stringr
|
||||||
|
repo_makedepends:
|
||||||
|
- r-rcppprogress
|
||||||
update_on:
|
update_on:
|
||||||
- source: rpkgs
|
- source: rpkgs
|
||||||
pkgname: genepop
|
pkgname: genepop
|
||||||
|
|
Loading…
Add table
Reference in a new issue