dokka/PKGBUILD

51 lines
1.7 KiB
Text
Raw Normal View History

2022-08-21 14:31:25 +00:00
# -*- mode: Shell-script; eval: (setq indent-tabs-mode 't); eval: (setq tab-width 4) -*-
# Maintainer: Dominic Meiser [git at msrd0 dot de]
pkgname='dokka'
2023-11-22 17:06:35 +00:00
pkgver=1.9.10
2022-08-21 14:31:25 +00:00
pkgrel=1
pkgdesc='Documentation Engine for Kotlin'
url="https://kotlin.github.io/dokka/$pkgver/"
license=('Apache')
arch=('any')
depends=('freemarker' 'java-environment')
makedepends=('gradle' 'java-runtime-headless=8' 'npm')
2022-08-21 14:31:25 +00:00
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'
2022-08-21 14:31:25 +00:00
'dokka')
2023-11-22 17:06:35 +00:00
sha256sums=('6ff50037806e140cff4a12b98c8e6631c2aedbd867b04dcc40ade9880c75d0fc'
2022-08-21 14:31:25 +00:00
'78d2f4fd30508c9b634e22655da275b0db4c5317d71bb3cd746f851702a31d93'
2023-11-22 17:06:35 +00:00
'bef57356bd152795195100874c918fa27c35407507aa13f08267dce0b0dcc1de'
'2bac7e5f944f4f2342eaabff4b60666f3681dd945ff96e8bb56491c6dda4deb8'
2022-08-21 14:31:25 +00:00
'9c7aa9721fe0b2c3cf3831a4d0b1720f13b070734d7be2702f820267ca11e277')
prepare() {
cd "$srcdir/dokka-$pkgver"
for patch in \
'0001-enable-application-plugin.patch' \
'0002-embed-plugin-dependencies.patch' \
'0003-disable-gradle-enterprise.patch'
do
patch -N -p0 -i "../$patch"
done
2022-08-21 14:31:25 +00:00
}
build() {
cd "$srcdir/dokka-$pkgver"
2023-11-22 17:06:35 +00:00
gradle :runners:cli:distTar
gradle :plugins:base:jar
2022-08-21 14:31:25 +00:00
}
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/"
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/"
}