summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowdragon2015-08-31 00:41:10 +0200
committersnowdragon2015-08-31 00:41:10 +0200
commitd29fc849c7b686fbbb30f95148d2db1b9ddc52ce (patch)
treedd93dad09f44967b1c91cabd06289db815fd7503
downloadaur-jarversion.tar.gz
Initial conversion
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
-rwxr-xr-xjarversion2
-rw-r--r--jarversion.jarbin0 -> 1664 bytes
4 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..41c09c342ae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = jarversion
+ pkgdesc = Simple tool that reads the Implementation-Version attribute of a jar file.
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/git-commit/jarversion
+ arch = any
+ license = Apache
+ depends = java-runtime
+ provides = jarversion
+ source = jarversion
+ source = jarversion.jar
+ md5sums = b9101994eae9bc66d20dd4cba5f85dff
+ md5sums = 8a5b36291fbc385fab5394b59ece5e1b
+
+pkgname = jarversion
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..172f270a7f0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Maximilian Berger <snowdragon92[at]gmail[dotcom]>
+
+pkgname=jarversion
+pkgver=1.0
+pkgrel=1
+pkgdesc="Simple tool that reads the Implementation-Version attribute of a jar file."
+arch='any'
+url="https://github.com/git-commit/jarversion"
+license=('Apache')
+
+depends=('java-runtime')
+provides=('jarversion')
+
+source=('jarversion'
+ 'jarversion.jar')
+
+md5sums=('b9101994eae9bc66d20dd4cba5f85dff'
+ '8a5b36291fbc385fab5394b59ece5e1b') #generated with 'makepkg -g'
+
+package() {
+ cd "$srcdir"
+ mkdir -p "${pkgdir}/usr/share/java/jarversion/"
+ chmod -R 777 "${pkgdir}/usr/share/java/jarversion/"
+
+ # install shell wrapper script
+ install -D -m755 "${srcdir}/jarversion" "${pkgdir}/usr/bin/jarversion"
+
+ # install jar
+ install -D -m666 "${srcdir}/jarversion.jar" "${pkgdir}/usr/share/java/jarversion/jarversion.jar"
+
+}
diff --git a/jarversion b/jarversion
new file mode 100755
index 00000000000..8effcd950ae
--- /dev/null
+++ b/jarversion
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "$JAVA_HOME/bin/java" -jar '/usr/share/java/jarversion/jarversion.jar' "$@" \ No newline at end of file
diff --git a/jarversion.jar b/jarversion.jar
new file mode 100644
index 00000000000..b496bc23a98
--- /dev/null
+++ b/jarversion.jar
Binary files differ