diff options
author | Pekka Ristola | 2023-11-24 13:50:01 +0200 |
---|---|---|
committer | Pekka Ristola | 2023-11-24 13:50:01 +0200 |
commit | ece351dd3ea31271f6525d13bcbf5eae0a12076b (patch) | |
tree | 7efb0ef3b46a1d2ecdebff88ab27c6c4aa0fa2c6 | |
download | aur-ece351dd3ea31271f6525d13bcbf5eae0a12076b.tar.gz |
Version 1.0.2
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a0e12f7fe2b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = r-ggkegg + pkgdesc = KEGG pathway visualization by ggplot2 + pkgver = 1.0.2 + pkgrel = 1 + url = https://bioconductor.org/packages/ggkegg + arch = any + license = MIT + checkdepends = r-testthat + depends = r-annotationdbi + depends = r-biocfilecache + depends = r-cairo + depends = r-data.table + depends = r-dplyr + depends = r-getoptlong + depends = r-ggplot2 + depends = r-ggraph + depends = r-igraph + depends = r-magick + depends = r-org.hs.eg.db + depends = r-patchwork + depends = r-shadowtext + depends = r-stringr + depends = r-tibble + depends = r-tidygraph + depends = r-xml + optdepends = r-biocstyle + optdepends = r-bnlearn + optdepends = r-clusterprofiler + optdepends = r-knitr + optdepends = r-rmarkdown + optdepends = r-testthat + source = https://bioconductor.org/packages/release/bioc/src/contrib/ggkegg_1.0.2.tar.gz + md5sums = 747219ce420df145e10ee4b9243b17dc + sha256sums = 5e1e4b9a9b9f88c48b504c285176bd873a760b38d5966916009af06320b27602 + +pkgname = r-ggkegg diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a28635e7861b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=ggkegg +_pkgver=1.0.2 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="KEGG pathway visualization by ggplot2" +arch=(any) +url="https://bioconductor.org/packages/${_pkgname}" +license=(MIT) +depends=( + r-annotationdbi + r-biocfilecache + r-cairo + r-data.table + r-dplyr + r-getoptlong + r-ggplot2 + r-ggraph + r-igraph + r-magick + r-org.hs.eg.db + r-patchwork + r-shadowtext + r-stringr + r-tibble + r-tidygraph + r-xml +) +checkdepends=( + r-testthat +) +optdepends=( + r-biocstyle + r-bnlearn + r-clusterprofiler + r-knitr + r-rmarkdown + r-testthat +) +source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('747219ce420df145e10ee4b9243b17dc') +sha256sums=('5e1e4b9a9b9f88c48b504c285176bd873a760b38d5966916009af06320b27602') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R +} + +package() { + 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" +} |