summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsukanka2022-07-21 22:59:44 +0800
committersukanka2022-07-21 22:59:44 +0800
commit2c690704d7a4c40607dac5cd312a2518fa0eb16b (patch)
treeb0e4e2a864ffd9b6ee39f6ab49e250f8d2f54e5c
parent7cac5f837e5ce53d63bd2d69ba50e30f1b6e8fe5 (diff)
downloadaur-2c690704d7a4c40607dac5cd312a2518fa0eb16b.tar.gz
takeover package
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD44
2 files changed, 29 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f5fa8fcbfc9..6dfcbb51fc5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
pkgbase = r-openxlsx
pkgdesc = Read, Write and Edit xlsx Files
pkgver = 4.2.5
- pkgrel = 1
+ pkgrel = 4
url = https://cran.r-project.org/package=openxlsx
- arch = i686
arch = x86_64
license = MIT
- depends = r>=3.3.0
+ depends = r
depends = r-rcpp
depends = r-stringi
depends = r-zip
diff --git a/PKGBUILD b/PKGBUILD
index 087c71b08f9..44263a1b7bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,36 @@
-# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
-# Contributor: Alex Branham <branham@utexas.edu>
+# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
-_cranname=openxlsx
-_cranver=4.2.5
-pkgname=r-${_cranname,,}
-pkgver=${_cranver//[:-]/.}
-pkgrel=1
-pkgdesc="Read, Write and Edit xlsx Files"
-arch=(i686 x86_64)
-url="https://cran.r-project.org/package=${_cranname}"
-license=(MIT)
-depends=('r>=3.3.0' r-rcpp r-stringi r-zip)
-optdepends=(r-knitr r-rmarkdown r-roxygen2 r-testthat)
-source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+_pkgname=openxlsx
+_pkgver=4.2.5
+pkgname=r-${_pkgname,,}
+pkgver=4.2.5
+pkgrel=4
+pkgdesc='Read, Write and Edit xlsx Files'
+arch=('x86_64')
+url="https://cran.r-project.org/package=${_pkgname}"
+license=('MIT')
+depends=(
+ r
+ r-rcpp
+ r-stringi
+ r-zip
+)
+optdepends=(
+ r-knitr
+ r-rmarkdown
+ r-roxygen2
+ r-testthat
+)
+source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('65d06d2819b656ac30fc78437ee712a83fb5a7ab750f56268e5c9e578c582519')
build() {
- R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
+ R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
}
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
-
- cp -a --no-preserve=ownership "${_cranname}" "${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}"
}
+# vim:set ts=2 sw=2 et: