mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-float: use metadata checks
This commit is contained in:
parent
21e6b85947
commit
843c99492a
5 changed files with 36 additions and 23 deletions
|
@ -7,10 +7,7 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
|||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_license = "BSD 2-clause License + file LICENSE",
|
||||
)
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,28 +3,33 @@
|
|||
_pkgname=float
|
||||
_pkgver=0.3-2
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=0.3.2
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='32-Bit Floats'
|
||||
arch=('x86_64')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('BSD')
|
||||
pkgdesc="32-Bit Floats"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('BSD-2-Clause')
|
||||
depends=(
|
||||
blas
|
||||
lapack
|
||||
r
|
||||
)
|
||||
makedepends=(
|
||||
gcc-fortran
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('233a0dd71f02491ce410c173fd3c3a503b3b49a6a5fe092dde61710db2732a91')
|
||||
md5sums=('5bd17f68abd9d11360b64c21c54816e8')
|
||||
b2sums=('4abdbfd3c9988ad34d71800dbb9afdc412608c6651362591f8876bf3fcbe543035c0524534613fa5178491c042f244da4aab5bb8a25a8d6bc9d0fdcb6fc0a566')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
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():
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('_pkgver='):
|
||||
line = f'_pkgver={_G.newver}'
|
||||
print(line)
|
||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,7 +3,16 @@ maintainers:
|
|||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
update_on:
|
||||
- regex: float_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=float
|
||||
- source: rpkgs
|
||||
pkgname: float
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
- source: alpmfiles
|
||||
pkgname: blas
|
||||
filename: usr/lib/libblas\.so\.([^.]+)
|
||||
repo: extra
|
||||
- source: alpmfiles
|
||||
pkgname: lapack
|
||||
filename: usr/lib/liblapack\.so\.([^.]+)
|
||||
repo: extra
|
||||
|
|
|
@ -193,6 +193,7 @@ license_map = {
|
|||
"Apache License 2.0": "Apache-2.0",
|
||||
"Artistic-1.0": "Artistic-1.0-Perl",
|
||||
"Artistic-2.0": "Artistic-2.0",
|
||||
"BSD 2-clause License + file LICENSE": "BSD-2-Clause",
|
||||
"BSD_2_clause + file LICENSE": "BSD-2-Clause",
|
||||
"BSD_3_clause + file LICENSE": "BSD-3-Clause",
|
||||
"BSL-1.0": "BSL-1.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue