attempt to patch for 1.9.20
Some checks failed
Mirror / mirror (push) Failing after 7m6s

fails to find the subproject, whatever gradle is doing, I have no idea
This commit is contained in:
Dominic 2024-11-25 18:13:24 +01:00
parent 945e2cb4e7
commit aa0c85a528
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D
4 changed files with 36 additions and 39 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Dominic Meiser [git at msrd0 dot de]
pkgname='dokka'
pkgver=1.9.10
pkgver=1.9.20
pkgrel=1
pkgdesc='Documentation Engine for Kotlin'
url="https://kotlin.github.io/dokka/$pkgver/"
@ -10,17 +10,17 @@ license=('Apache')
arch=('any')
depends=('freemarker' 'java-environment')
makedepends=('gradle' 'jdk8-openjdk' 'npm')
makedepends=('gradle' 'jdk11-openjdk' 'npm')
source=("https://github.com/Kotlin/dokka/archive/refs/tags/v$pkgver.tar.gz"
'0001-enable-application-plugin.patch'
'0002-embed-plugin-dependencies.patch'
'0003-disable-gradle-enterprise.patch'
'dokka')
sha256sums=('6ff50037806e140cff4a12b98c8e6631c2aedbd867b04dcc40ade9880c75d0fc'
'78d2f4fd30508c9b634e22655da275b0db4c5317d71bb3cd746f851702a31d93'
'bef57356bd152795195100874c918fa27c35407507aa13f08267dce0b0dcc1de'
'2bac7e5f944f4f2342eaabff4b60666f3681dd945ff96e8bb56491c6dda4deb8'
sha256sums=('c1d2e9b0547c9a8023f0fb81e8d7ceabc25a11a1de20e387010217a79ade4ac2'
'022deed27194a1cca2b981b1cd941828a4f1446c91af1f8339a4adfb983667b3'
'e4a33df4d96234ef7be45811b6422c6adbd8749d0ffb505631912f6fe7e12d34'
'a833d13aad3b30d5718cc952dcdbf26dfb023ebb3282d20f14bb9889f195561f'
'9c7aa9721fe0b2c3cf3831a4d0b1720f13b070734d7be2702f820267ca11e277')
prepare() {
@ -36,14 +36,14 @@ prepare() {
build() {
cd "$srcdir/dokka-$pkgver"
JAVA_HOME=/usr/lib/jvm/java-8-openjdk gradle :runners:cli:distTar
JAVA_HOME=/usr/lib/jvm/java-8-openjdk gradle :plugins:base:jar
JAVA_HOME=/usr/lib/jvm/java-11-openjdk gradle :dokka-runners:runner-cli:distTar
JAVA_HOME=/usr/lib/jvm/java-11-openjdk gradle :plugins:base:jar
}
package() {
cd "$srcdir/dokka-$pkgver"
mkdir -p "$pkgdir/usr/lib/dokka"
tar xf "runners/cli/build/distributions/cli-$pkgver.tar" --strip-components=1 -C "$pkgdir/usr/lib/dokka/"
tar xf "dokka-runners/runner-cli/build/distributions/cli-$pkgver.tar" --strip-components=1 -C "$pkgdir/usr/lib/dokka/"
rm "$pkgdir/usr/lib/dokka/bin/cli.bat"
install -Dm644 "plugins/base/build/libs/base-$pkgver.jar" "$pkgdir/usr/lib/dokka/plugins/base.jar"
install -Dm755 ../dokka -t "$pkgdir/usr/bin/"