[arch-commits] Commit in (5 files)

Jiachen Yang farseerfc at archlinux.org
Thu Dec 12 07:32:16 UTC 2019


    Date: Thursday, December 12, 2019 @ 07:32:15
  Author: farseerfc
Revision: 537339

add plantuml

Added:
  plantuml/
  plantuml/repos/
  plantuml/trunk/
  plantuml/trunk/PKGBUILD
  plantuml/trunk/plantuml.run

--------------+
 PKGBUILD     |   39 +++++++++++++++++++++++++++++++++++++++
 plantuml.run |    2 ++
 2 files changed, 41 insertions(+)

Added: plantuml/trunk/PKGBUILD
===================================================================
--- plantuml/trunk/PKGBUILD	                        (rev 0)
+++ plantuml/trunk/PKGBUILD	2019-12-12 07:32:15 UTC (rev 537339)
@@ -0,0 +1,39 @@
+# Maintainer: Jiachen YANG <farseerfc at gmail.com>
+# AUR Contributor: juantascon <juantascon.aur at horlux.org>
+# Contributor : Jingbei Li <i at jingbei.li>
+
+pkgname=plantuml
+pkgver=1.2019.12
+pkgrel=1
+pkgdesc="Component that allows to quickly write uml diagrams"
+arch=(any)
+url="http://plantuml.com/"
+license=('GPL')
+depends=("graphviz")
+makedepends=("apache-ant" "java-environment>=8")
+source=("http://downloads.sourceforge.net/project/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
+        "$pkgname.run")
+sha256sums=('fd04357c9a50304cebc943975eb069601a04460a6a8d9b16a108e31df8213740'
+            'a3fb528f4c719cfd0ff6154c60fd54ce341011d132caf950cc30af4989f6aac8')
+optdepends=('plantuml-ascii-math: allow use AsciiMath or JLaTeXMath notation'
+            'ditaa: allow use ditaa notation'
+            'graphviz: allow use Graphviz/DOT notation')
+
+prepare(){
+  cd "$srcdir/$pkgname-$pkgver"
+    sed 's/target="1.6"/target="1.7"/g' -i build.xml
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # assume ant defaults to UTF8 encoding.
+  ant dist
+}
+
+package() {
+  depends+=("java-runtime")
+  install -m 755 -D "$pkgname.run" "$pkgdir/usr/bin/$pkgname"
+
+  cd "$srcdir/$pkgname-$pkgver"
+  install -m 644 -D "$pkgname.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
+}

Added: plantuml/trunk/plantuml.run
===================================================================
--- plantuml/trunk/plantuml.run	                        (rev 0)
+++ plantuml/trunk/plantuml.run	2019-12-12 07:32:15 UTC (rev 537339)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/java -jar '/usr/share/java/plantuml/plantuml.jar' "$@"


More information about the arch-commits mailing list