summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5244dc17ca7b78721e3df00846022e0313845236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Alex Hirzel <alex at hirzel period us>
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>

_cranname=uuid
_cranver=1.2-0
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-uuid
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Tools for generating and handling of UUIDs (Universally Unique Identifiers)."
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('MIT')
depends=('r>=2.9.0')
optdepends=('r-bigReg')

source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
sha256sums=('73710a14f812e34e891795b8945ea213f15ebcaf00b464b0e4b3fa09cf222afd')

build() {
	cd "${srcdir}"
	R CMD INSTALL ${_pkgtar} -l ${srcdir}
}
package() {
	cd "${scrdir}"
	install -dm0755 "$pkgdir/usr/lib/R/library"

	# TODO - this does not include the MIT terms themselves, which are not
	# actually distributed with the package, and this case is not covered by the
	# wiki yet: <https://wiki.archlinux.org/title/R_package_guidelines>
	install -Dm644 "${_cranname}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"

	cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}