blob: 5a3e978df3fc0c1d8ab3e927e3c7d1388ed2d27b (
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
|
# Maintainer: M A <morealaz at gmail dot com>
pkgname=jakartaee-api-docs-git
pkgver=8.0.0.r0.0104a7c
pkgrel=2
pkgdesc="Jakarta EE api documentations."
arch=('any')
url="https://github.com/eclipse-ee4j/jakartaee-api"
license=('EPL')
makedepends=('git' 'java-environment>=8' 'maven')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long $(git rev-list --tags --max-count=1) | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
mvn -Pstaging install javadoc:javadoc
}
package() {
cd "$srcdir/${pkgname%-git}"
install -d "${pkgdir}/usr/share/doc/jakartaee/"
cp -a "jakartaee-api/target/site/apidocs" "${pkgdir}/usr/share/doc/jakartaee/api"
cp -a "jakartaee-web-api/target/site/apidocs" "${pkgdir}/usr/share/doc/jakartaee/web-api"
}
# vim:set ts=4 sw=4 et:
|