mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-isa2: use metadata checks
This commit is contained in:
parent
6293732ce6
commit
cc7cebf5aa
5 changed files with 23 additions and 22 deletions
|
@ -3,12 +3,12 @@
|
||||||
_pkgname=isa2
|
_pkgname=isa2
|
||||||
_pkgver=0.3.6
|
_pkgver=0.3.6
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=0.3.6
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc='The Iterative Signature Algorithm'
|
pkgdesc="The Iterative Signature Algorithm"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://cran.r-project.org/package=${_pkgname}"
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
license=('CCPL:by-nc-sa')
|
license=('CC-BY-NC-SA-4.0')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
r
|
||||||
)
|
)
|
||||||
|
@ -17,14 +17,15 @@ optdepends=(
|
||||||
r-igraph
|
r-igraph
|
||||||
)
|
)
|
||||||
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=('6256da84dd9a10499f802838c2065ee6e4dcc012b07d21116496ff8aebb65c66')
|
md5sums=('01ce8d5c7bd43fa7fe702cbdaf6863d3')
|
||||||
|
b2sums=('d0d587629d79353c47bfeded7557d6d673eeee1993b6de2f29f1b7546b7a1b3aab1e251d192e8d7fb7165d70d8cf948a0f8d157810b0fc677eb8669ee5dc4c1d')
|
||||||
|
|
||||||
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"
|
||||||
}
|
}
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from lilaclib import *
|
from lilaclib import *
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||||
|
from lilac_r_utils import r_pre_build
|
||||||
|
|
||||||
def pre_build():
|
def pre_build():
|
||||||
for line in edit_file('PKGBUILD'):
|
r_pre_build(_G)
|
||||||
if line.startswith('_pkgver='):
|
|
||||||
line = f'_pkgver={_G.newver}'
|
|
||||||
print(line)
|
|
||||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -3,7 +3,8 @@ maintainers:
|
||||||
- github: starsareintherose
|
- github: starsareintherose
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
update_on:
|
update_on:
|
||||||
- regex: isa2_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: isa2
|
||||||
url: https://cran.r-project.org/package=isa2
|
repo: cran
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
|
@ -7,10 +7,7 @@ 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(
|
r_pre_build(_G)
|
||||||
_G,
|
|
||||||
expect_license = "CC BY-NC-SA 4.0",
|
|
||||||
)
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -197,6 +197,7 @@ license_map = {
|
||||||
"BSD_2_clause + file LICENSE": "BSD-2-Clause",
|
"BSD_2_clause + file LICENSE": "BSD-2-Clause",
|
||||||
"BSD_3_clause + file LICENSE": "BSD-3-Clause",
|
"BSD_3_clause + file LICENSE": "BSD-3-Clause",
|
||||||
"BSL-1.0": "BSL-1.0",
|
"BSL-1.0": "BSL-1.0",
|
||||||
|
"CC BY-NC-SA 4.0": "CC-BY-NC-SA-4.0",
|
||||||
"CC0": "CC0-1.0",
|
"CC0": "CC0-1.0",
|
||||||
"CeCILL": "CECILL-2.0",
|
"CeCILL": "CECILL-2.0",
|
||||||
"EPL": "EPL",
|
"EPL": "EPL",
|
||||||
|
|
Loading…
Add table
Reference in a new issue