mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
# Contributor: peippo <christoph+aur@christophfink.com>
|
|
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
|
# Contributor: Grey Christoforo <first name at last name dot net>
|
|
|
|
_pkgname=png
|
|
_pkgver=0.1-8
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=4
|
|
pkgdesc="Read and write PNG images"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('GPL-2.0-only OR GPL-3.0-only')
|
|
depends=(
|
|
libpng
|
|
r
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('5667528b7bbdd8c058018ea7ac6573a7')
|
|
b2sums=('c20d27526334f942a80a0e6c16b0e222d6a20dff70fd275aac9f6792f626e3f0d8de2199e310a2e5f0ef388456dfc8043cab159eddbe767a1c9a415de71e3b03')
|
|
|
|
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"
|
|
}
|