summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Di Luigi2015-12-24 15:02:57 +0100
committerWilliam Di Luigi2015-12-24 15:02:57 +0100
commit2cf420e3366cc5bd2695c7b188f62fcf194e650a (patch)
tree52fce6734eb239757d2f0ff4cc4ba6cec00a346a
downloadaur-2cf420e3366cc5bd2695c7b188f62fcf194e650a.tar.gz
First commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD42
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3e2c1b4dae1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu Dec 24 14:01:56 UTC 2015
+pkgbase = jplag
+ pkgdesc = JPlag - Detecting Software Plagiarism
+ pkgver = r46.23f14a4
+ pkgrel = 1
+ url = http://www.jplag.de
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = maven
+ depends = java-runtime
+ source = git://github.com/jplag/jplag.git
+ sha256sums = SKIP
+
+pkgname = jplag
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5ee7a6e2c5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: William Di Luigi <williamdiluigi@gmail.com>
+
+pkgname=jplag
+pkgver=r46.23f14a4
+pkgrel=1
+pkgdesc="JPlag - Detecting Software Plagiarism"
+arch=('any')
+url="http://www.jplag.de"
+license=('GPL3')
+depends=('java-runtime')
+makedepends=('git' 'maven')
+
+source=(
+ 'git://github.com/jplag/jplag.git'
+)
+sha256sums=(
+ 'SKIP'
+)
+
+pkgver() {
+ cd jplag
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd jplag/jplag
+
+ mvn clean generate-sources assembly:assembly
+}
+
+package() {
+ cd jplag/jplag
+
+ install -D -m755 target/jplag-*-jar-with-dependencies.jar $pkgdir/usr/share/java/jplag/jplag.jar
+ install -d -m755 $pkgdir/usr/bin
+ cat << 'EOF' > $pkgdir/usr/bin/jplag
+#!/bin/sh
+"$JAVA_HOME/bin/java" -jar /usr/share/java/jplag/jplag.jar $@
+EOF
+ chmod 755 $pkgdir/usr/bin/jplag
+}