Package Details: r-tinytex 0.31-1

Git Clone URL: https://aur.archlinux.org/r-tinytex.git (read-only, click to copy)
Package Base: r-tinytex
Description: Helper Functions to Install and Maintain 'TeX Live', and Compile 'LaTeX' Documents
Upstream URL: https://cran.r-project.org/package=tinytex
Licenses: custom, MIT
Submitter: Kibouo
Maintainer: anzi2001
Last Packager: anzi2001
Votes: 0
Popularity: 0.000000
First Submitted: 2019-05-02 17:52
Last Updated: 2021-04-06 11:33

Latest Comments

workingdodo commented on 2021-04-02 16:23

Installing this now results in a failure to build, as there is no version 0.30 in the sources listed, only 0.31. Updating this PKGBUILD, and running it worked on my end, hope this helps :)

# Maintainer: anzi2001 <anzi2001 at gmail dot com> 
# Contributor: haha662 <haha662 at outlook dot com>
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
# Contributor: Alex Branham <branham@utexas.edu>

_cranname=tinytex
_cranver=0.31
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Helper Functions to Install and Maintain 'TeX Live', and Compile 'LaTeX' Documents"
arch=("any")
url="https://cran.r-project.org/package=${_cranname}"
license=("MIT" "custom")
depends=("r" "r-xfun>=0.19")
# makedepends=()
optdepends=("r-textit" "r-rstudioapi")
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz" "https://cran.r-project.org/web/packages/tinytex/LICENSE")
sha256sums=('17bc975327a1ccb96f877678775c9067f71683d597ea716ab260f4d815b34311'
            'f58c2f5b0f10b231d9cea9bc4ea0d849cd4279a21d03257be8dc9fd9452fad37')

build() {
  cd "${srcdir}"

  R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}

package() {
  cd "${srcdir}"

  install -dm0755 "${pkgdir}/usr/lib/R/library"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}

blazko commented on 2020-02-12 11:21

This works for version 0.19

_cranname=tinytex
_cranver=0.19
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-tinytex
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc='Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents'
arch=('any')
url='https://cran.r-project.org/package=tinytex'
license=('MIT')
depends=('r' 'r-xfun>=0.3')
optdepends=('r-testit' 'r-rstudioapi')
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('7c0dd8ae084bd4c8632384bd5538b5a7')

chilledfrogs commented on 2019-06-01 22:55

Hello there,

I noticed you are missing a few variables, as well as having an outdated version of a package, here are the fixes I made to make it work (I didn't implement automatically doing tinytex::install_tinytex() since I'm far from a PKGBUILD expert, but that would be something nice to do indeed):

_cranname=tinytex
_cranver=0.13
_pkgtar=${_cranname}_${_cranver}.tar.gz
[...]
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('52375012e355e4f74ce9463d8c98e42d')
[...]

Of course, double-check and/or change the md5sum if a new release comes out...

In the meantime I will flag this as out-of-date