summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPekka Ristola2023-11-23 21:50:33 +0200
committerPekka Ristola2023-11-23 21:50:33 +0200
commit866ffdbb43d0dd17bc14bde3579ac4c6ac7ce517 (patch)
tree8e1366a5cf7b27ebb5c148787b230aeec03123d9 /PKGBUILD
downloadaur-866ffdbb43d0dd17bc14bde3579ac4c6ac7ce517.tar.gz
Version 1.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..80f38161d0d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
+
+_pkgname=gDNAx
+_pkgver=1.0.0
+pkgname=r-${_pkgname,,}
+pkgver=${_pkgver//-/.}
+pkgrel=1
+pkgdesc="Diagnostics for assessing genomic DNA contamination in RNA-seq data"
+arch=(any)
+url="https://bioconductor.org/packages/${_pkgname}"
+license=(Artistic2.0)
+depends=(
+ r-annotationdbi
+ r-annotationhub
+ r-biocgenerics
+ r-biocparallel
+ r-biostrings
+ r-bitops
+ r-genomeinfodb
+ r-genomicalignments
+ r-genomicfeatures
+ r-genomicfiles
+ r-genomicranges
+ r-iranges
+ r-plotrix
+ r-rcolorbrewer
+ r-rsamtools
+ r-s4vectors
+ r-summarizedexperiment
+)
+checkdepends=(
+ r-gdnainrnaseqdata
+ r-runit
+ r-txdb.hsapiens.ucsc.hg38.knowngene
+)
+optdepends=(
+ r-biocstyle
+ r-gdnainrnaseqdata
+ r-knitr
+ r-rmarkdown
+ r-runit
+ r-txdb.hsapiens.ucsc.hg38.knowngene
+)
+source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
+md5sums=('ca3a7370388bf64ba5ccae7161c64ebd')
+sha256sums=('4b8c512d18a57fbddfe7f4625ca00e6f6d64eab31c7871a748fec7d2446aff5d')
+
+build() {
+ mkdir -p build
+ R CMD INSTALL "$_pkgname" -l build
+}
+
+check() {
+ cd "$_pkgname/tests"
+ R_LIBS="$srcdir/build" Rscript --vanilla runTests.R
+}
+
+package() {
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
+}