summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7526ee27665de3d68a51e6b90dc522baea495e4e (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
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>

pkgname=jakartaee10-doc
pkgver=10.0.0
pkgrel=2
pkgdesc="Jakarta EE 10 documentation."
arch=('any')
url="https://github.com/eclipse-ee4j/jakartaee-api"
license=('EPL')
makedepends=('java-environment-openjdk=11' 'maven')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('e9ece31d10be350c08fbf1d7ca3a9ae6b0ad21db6296b4bf414108e3a82c6320')

build() {
	cd "jakartaee-api-${pkgver}"
	export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
	mvn -Pstaging install javadoc:javadoc
}

package() {
	cd "jakartaee-api-${pkgver}"
	install -d "${pkgdir}/usr/share/doc/${pkgname%-doc}/"
	cp -r "jakartaee-api/target/site/apidocs" "${pkgdir}/usr/share/doc/${pkgname%-doc}/api"
	cp -r "jakartaee-web-api/target/site/apidocs" "${pkgdir}/usr/share/doc/${pkgname%-doc}/web-api"
}
# vim:set ts=4 sw=4 et: