upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / plantuml / repos / community-any / PKGBUILD
blobaff58ad885ba75570854a9a92957ae78517cca84
1 # Maintainer: Jiachen YANG <farseerfc@gmail.com>
2 # AUR Contributor: juantascon <juantascon.aur@horlux.org>
3 # Contributor : Jingbei Li <i@jingbei.li>
5 pkgname=plantuml
6 pkgver=1.2023.6
7 pkgrel=1
8 pkgdesc="Component that allows to quickly write uml diagrams"
9 arch=(any)
10 url="https://plantuml.com/"
11 license=('GPL')
12 depends=("java-runtime>=8" "bash")
13 makedepends=("apache-ant" "java-environment>=8")
14 source=("https://downloads.sourceforge.net/project/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
15         "$pkgname.run")
16 sha256sums=('92b9284317f06ee09d6ca634ab13d55df23c068184f8de8a5ac52733be45239c'
17             'a3fb528f4c719cfd0ff6154c60fd54ce341011d132caf950cc30af4989f6aac8')
18 optdepends=('plantuml-ascii-math: allow use AsciiMath or JLaTeXMath notation'
19             'ditaa: allow use ditaa notation'
20             'graphviz: allow use Graphviz/DOT notation')
22 prepare(){
23   cd "$srcdir/$pkgname-$pkgver"
24     sed 's/target="1.6"/target="1.7"/g;s/source="1.6"/source="1.7"/g' -i build.xml
27 build() {
28   cd "$srcdir/$pkgname-$pkgver"
29   # assume ant defaults to UTF8 encoding.
30   ant dist
33 package() {
34   depends+=("java-runtime")
35   install -m 755 -D "$pkgname.run" "$pkgdir/usr/bin/$pkgname"
37   cd "$srcdir/$pkgname-$pkgver"
38   install -m 644 -D "$pkgname.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"