summaryrefslogtreecommitdiff
path: root/pcr/java-cup
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-08 07:46:46 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-08 14:00:10 +0100
commit3668cce7ff47496a3d1a24e154ac87629832d10d (patch)
tree74267ac09d35c9755c2f2d538c248cd2b0b00e0f /pcr/java-cup
parent7eee3a5c23d63e386c4294e76b2912525f0a8ce0 (diff)
downloadabslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.gz
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.bz2
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.zip
java/* moved to pcr/
Diffstat (limited to 'pcr/java-cup')
-rw-r--r--pcr/java-cup/PKGBUILD41
-rw-r--r--pcr/java-cup/java-cup.sh2
2 files changed, 43 insertions, 0 deletions
diff --git a/pcr/java-cup/PKGBUILD b/pcr/java-cup/PKGBUILD
new file mode 100644
index 000000000..97b41e20b
--- /dev/null
+++ b/pcr/java-cup/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=java-cup
+_pkgver=0.10k
+pkgver=0.10.k
+pkgdesc="LALR parser generator for Java"
+url=http://www2.cs.tum.edu/projects/cup/
+license=('custom:MIT')
+
+pkgrel=1
+arch=('any')
+depends=('java-environment')
+
+source=(http://www2.cs.tum.edu/projects/cup/java_cup_v${_pkgver#*.}.tar.gz java-cup.sh)
+md5sums=('8b11edfec13c590ea443d0f0ae0da479'
+ '2ec9859574d479ee27c71e8b7f978eea')
+
+prepare() {
+ cd "$srcdir"
+ find . -name '*.class' -delete
+}
+
+build() {
+ cd "$srcdir"
+ mkdir classes
+ find java_cup -name '*.java' -exec javac -d classes {} +
+ jar cfe java_cup.jar java_cup.Main -C classes .
+}
+
+package() {
+ cd "$srcdir"
+
+ install -Dm644 java_cup.jar "$pkgdir"/usr/share/java/java_cup-${_pkgver}.jar
+ ln -s java_cup-${_pkgver}.jar "$pkgdir"/usr/share/java/java_cup.jar
+
+ install -Dm755 java-cup.sh "$pkgdir"/usr/bin/java-cup
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ install -d "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 manual.html cup_logo.gif -t "$pkgdir"/usr/share/doc/$pkgname
+}
diff --git a/pcr/java-cup/java-cup.sh b/pcr/java-cup/java-cup.sh
new file mode 100644
index 000000000..b7bf91d14
--- /dev/null
+++ b/pcr/java-cup/java-cup.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/java/java_cup.jar "$@"