aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2019-02-18 02:53:15 +0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-02-18 05:48:40 +0000
commit2f5acfe8b3cd35e82ee7544504ce7f276cd02d5b (patch)
tree54aabb4b608d42205348f4940fbc49109a2cd9d6
parentecd779570645a246e55d536ebc71f60f91f675a9 (diff)
downloadaports-2f5acfe8b3cd35e82ee7544504ce7f276cd02d5b.tar.bz2
aports-2f5acfe8b3cd35e82ee7544504ce7f276cd02d5b.tar.xz
testing/spark: new aport
https://www.igniterealtime.org/projects/spark/ Cross-platform IM client optimized for businesses and organizations.
-rw-r--r--testing/spark/APKBUILD47
-rw-r--r--testing/spark/spark.desktop10
-rw-r--r--testing/spark/spark.sh15
3 files changed, 72 insertions, 0 deletions
diff --git a/testing/spark/APKBUILD b/testing/spark/APKBUILD
new file mode 100644
index 0000000000..26ebbf0161
--- /dev/null
+++ b/testing/spark/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Taner Tas <taner76@gmail.com>
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=spark
+_pkgname=Spark
+pkgver=2.8.3
+pkgrel=0
+pkgdesc="Cross-platform IM client optimized for businesses and organizations."
+url="https://www.igniterealtime.org/projects/spark/"
+arch="all"
+license="Apache-2.0"
+depends="
+ hicolor-icon-theme
+ openjdk8-jre
+ portaudio
+ "
+makedepends="apache-ant openjdk8"
+source="
+ $pkgname-$pkgver.tar.gz::https://github.com/igniterealtime/$_pkgname/archive/v$pkgver.tar.gz
+ spark.sh
+ spark.desktop
+ "
+options="!check" # No test suite
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"/build
+ ant jar
+}
+
+package() {
+ cd "$builddir"
+ install -Dm0755 "$srcdir"/spark.sh "$pkgdir"/usr/bin/spark
+ for i in 16x16 24x24 32x32 64x64; do install -Dm0644 \
+ "$builddir"/src/resources/images/spark-$i.png \
+ "$pkgdir"/usr/share/icons/hicolor/$i/apps/$pkgname.png
+ done
+ install -Dm0644 "$srcdir"/spark.desktop "$pkgdir"/usr/share/applications/spark.desktop
+ for i in bin logs documentation linux linux64 windows windows64 mac; do
+ rm -r target/build/$i || rm -rf target/build/lib/$i
+ done
+ cp -R target/build "$pkgdir"/usr/share/$pkgname
+ rm -vf "$pkgdir"/usr/share/spark/resources/*.dll
+}
+
+sha512sums="0fc8fded8105a069a9791e950828ea91ea5fe147531c9dc418bb069f2b89dc2a1851e05a82b6c27b7fb9b8bdc1a2538579b299e314be1d2e505d2eea117175fd spark-2.8.3.tar.gz
+e3d0575d34fe881bd53eab99c54723097d8601075497891d7bf49bb68c009720e488fcf2323f92a264b23ea288c2d30b75112566d84a056e3aaa58b656189773 spark.sh
+98f3e25850d11d77acae7e4e3fff8ad51302a84de9f5bbd65ba302a05649f803f3f89cfc65605ffe851d51a5f752e85a328a691cf777ee0fe667335980b11027 spark.desktop"
diff --git a/testing/spark/spark.desktop b/testing/spark/spark.desktop
new file mode 100644
index 0000000000..0c5abf5aca
--- /dev/null
+++ b/testing/spark/spark.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=spark
+Comment=Spark IM Client
+TryExec=/usr/bin/spark
+Exec=/usr/bin/spark
+Categories=Network;Chat;
+Terminal=false
+StartupNotify=true
+Icon=spark
diff --git a/testing/spark/spark.sh b/testing/spark/spark.sh
new file mode 100644
index 0000000000..71a5793da0
--- /dev/null
+++ b/testing/spark/spark.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+JAVA_HOME=/usr/lib/jvm/default-jvm
+SPARKDIR=/usr/share/spark
+BIN_DIRECTORY=$SPARKDIR/bin
+RESOURCE_DIRECTORY=$SPARKDIR/resources
+PLUGIN_DIRECTORY=$SPARKDIR/plugins
+
+$JAVA_HOME/bin/java -Dappdir=$SPARKDIR \
+-cp $SPARKDIR/lib/log4j.jar:\
+$SPARKDIR/lib/jdom.jar:\
+$SPARKDIR/lib/fmj.jar:\
+$SPARKDIR/lib/startup.jar:\
+$SPARKDIR/lib/linux/jdic.jar:\
+$SPARKDIR/resources \
+org.jivesoftware.launcher.Startup