summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatadune2016-01-12 11:52:51 +0100
committerpatadune2016-01-12 11:52:51 +0100
commit24e640112b5a3f999917647565858aa09611cb11 (patch)
tree1434994069177cf2e65ed5a4066c574c665ba26f
downloadaur-24e640112b5a3f999917647565858aa09611cb11.tar.gz
Initial import (from AUR3)
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD42
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e81f5c2e1cd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by makepkg 4.2.1
+# Sun Mar 29 13:31:10 UTC 2015
+pkgbase = javacc
+ pkgdesc = A parser generator for use with Java[tm]
+ pkgver = 6.1.3
+ pkgrel = 1
+ url = http://javacc.java.net/
+ arch = any
+ license = BSD
+ depends = java-environment
+ depends = apache-ant
+ source = svn+https://svn.java.net/svn/javacc~svn/tags/release_6_1_3
+ sha256sums = SKIP
+
+pkgname = javacc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1da842bffb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Matthew Longley <randomticktock@gmail.com>
+
+pkgname=javacc
+pkgver=6.1.3
+pkgrel=1
+pkgdesc="A parser generator for use with Java[tm]"
+arch=('any')
+url="http://javacc.java.net/"
+license=('BSD')
+depends=('java-environment' 'apache-ant')
+source=('svn+https://svn.java.net/svn/javacc~svn/tags/release_6_1_3')
+sha256sums=('SKIP')
+
+build() {
+ cd "$srcdir/release_6_1_3"
+ ant
+}
+
+package() {
+ cd "$srcdir/release_6_1_3"
+
+ install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ mkdir -m755 -p "$pkgdir/usr/share/java/$pkgname/bin" "$pkgdir/usr/bin"
+
+ # install examples
+ cp -R "examples/" "$pkgdir/usr/share/java/$pkgname/examples"
+
+ # install documentation
+ cp -R "www/doc/" "$pkgdir/usr/share/java/$pkgname/doc"
+
+ # install jar
+ install -m755 -D "target/$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname/bin/lib/$pkgname.jar"
+
+ # generate scripts to allow direct execution
+ for i in jjtree jjdoc javacc; do
+ printf "#\!bin/sh\nJAR=\"/usr/share/java/$pkgname/bin/lib/javacc.jar\"\n\njava -classpath \"$JAR\" javacc \"\$@\"\n" > "$pkgdir/usr/share/java/$pkgname/bin/$i";
+ cp "$pkgdir/usr/share/java/$pkgname/bin/$i" "$pkgdir/usr/bin/";
+ done
+
+ # Set permissions
+ chmod -R 755 "$pkgdir/usr/share/java/$pkgname/bin" "$pkgdir/usr/bin"
+}