[arch-commits] Commit in ditaa/repos/community-any (4 files)

Alexander Rødseth arodseth at archlinux.org
Fri Dec 2 11:13:11 UTC 2016


    Date: Friday, December 2, 2016 @ 11:13:10
  Author: arodseth
Revision: 197722

archrelease: copy trunk to community-any

Added:
  ditaa/repos/community-any/PKGBUILD
    (from rev 197721, ditaa/trunk/PKGBUILD)
  ditaa/repos/community-any/ditaa.sh
    (from rev 197721, ditaa/trunk/ditaa.sh)
Deleted:
  ditaa/repos/community-any/PKGBUILD
  ditaa/repos/community-any/ditaa.sh

----------+
 PKGBUILD |   67 ++++++++++++++++++++++++++++++++++++++-----------------------
 ditaa.sh |    6 ++---
 2 files changed, 45 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-02 11:12:31 UTC (rev 197721)
+++ PKGBUILD	2016-12-02 11:13:10 UTC (rev 197722)
@@ -1,25 +0,0 @@
-# $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
-# Contributor: Florian Pritz <bluewind at xinu.at>
-# Contributor: domanov <domanov at gmail.com>
-
-pkgname=ditaa
-pkgver=0.9
-pkgrel=2
-pkgdesc='Java utility to convert diagrams drawn using ascii art to bitmap'
-arch=('any')
-url='http://ditaa.sf.net/'
-license=('GPL')
-depends=('java-environment' 'gsfonts')
-source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname${pkgver/./_}.zip"
-        'ditaa.sh')
-sha256sums=('d689e933b80b065cd7c349e489cfb8feea69dd3e91ca78931edc6fa6e098e689'
-            '77f95a7c3235a1263b560844f988445083895550385bff1a4c28313b0767e38f')
-
-package() {
-  install -Dm755 "$pkgname${pkgver/./_}.jar" "$pkgdir/usr/share/java/$pkgname/ditaa-${pkgver/./_}.jar"
-  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
-  sed -i "s:VERSION:${pkgver/./_}:" "$pkgdir/usr/bin/$pkgname"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: ditaa/repos/community-any/PKGBUILD (from rev 197721, ditaa/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-12-02 11:13:10 UTC (rev 197722)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: domanov <domanov at gmail.com>
+
+pkgname=ditaa
+pkgver=0.10
+pkgrel=1
+pkgdesc='Java utility to convert diagrams drawn using ascii art to bitmap'
+arch=('any')
+url='https://github.com/stathissideris/ditaa'
+license=('GPL')
+depends=('java-environment' 'gsfonts')
+makedepends=('git' 'apache-ant')
+source=("git://github.com/stathissideris/ditaa#tag=v$pkgver"
+        "$pkgname.sh")
+sha256sums=('SKIP'
+            '77f95a7c3235a1263b560844f988445083895550385bff1a4c28313b0767e38f')
+
+prepare() {
+  cd "$pkgname"
+
+  sed -i 's/0_9/0_10/g' build/release.xml
+  sed -i 's/version 0.9/version 0.10/g' \
+    src/org/stathissideris/ascii2image/core/CommandLineConverter.java
+  sed -i "s:VERSION:${pkgver/./_}:" "$srcdir/$pkgname.sh"
+  mkdir -p bin
+}
+
+build() {
+  cd "$pkgname"
+
+  ant -buildfile build/release.xml release-jar
+}
+
+package() {
+  install -Dm755 "$pkgname/releases/$pkgname${pkgver/./_}.jar" \
+    "$pkgdir/usr/share/java/$pkgname/ditaa-${pkgver/./_}.jar"
+  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: ditaa.sh
===================================================================
--- ditaa.sh	2016-12-02 11:12:31 UTC (rev 197721)
+++ ditaa.sh	2016-12-02 11:13:10 UTC (rev 197722)
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR=/usr/share/java/ditaa
-${JAVA_HOME}/bin/java -jar $DIR/ditaa-VERSION.jar "$@"

Copied: ditaa/repos/community-any/ditaa.sh (from rev 197721, ditaa/trunk/ditaa.sh)
===================================================================
--- ditaa.sh	                        (rev 0)
+++ ditaa.sh	2016-12-02 11:13:10 UTC (rev 197722)
@@ -0,0 +1,3 @@
+#!/bin/sh
+DIR=/usr/share/java/ditaa
+${JAVA_HOME}/bin/java -jar $DIR/ditaa-VERSION.jar "$@"



More information about the arch-commits mailing list