r-rglpk: add new pkg

This commit is contained in:
Shun Wang 2025-01-12 12:37:23 +00:00
parent 489b1182e2
commit 39d9c6136d
3 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
# Contributor: Shun Wang <shuonwang at gmail dot com>
_pkgname=Rglpk
_pkgver=0.6-5.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="R/GNU Linear Programming Kit Interface"
arch=('any')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-slam
)
optdepends=()
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('6531cfc1b0c249fe14524e4fd043bbb1')
b2sums=('0b00f03b4d9db18bf048fc2afbe3947207a4473f2cee57885fdbee4ac78d6ac1e76a63d851a9369b1ccecce5f2923bfc3f86c8ddbd3eaa7ac378a8b9bc1a7f5b')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}

View file

@ -0,0 +1,14 @@
#!/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():
r_pre_build(_G)
def post_build():
git_pkgbuild_commit()
# update_aur_repo()

View file

@ -0,0 +1,12 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
- r-slam
update_on:
- source: rpkgs
pkgname: Rglpk
repo: cran
md5: true
- alias: r