diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-15 15:36:03 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-15 15:36:03 +0200 |
commit | 1cba978702feff9a523baa185796f520602baffe (patch) | |
tree | 7c9a85ba36d7896ec67319c218cad52cafce877e /java/java-cup/PKGBUILD | |
parent | 6ca2416b334e0bed864cc0707ff361fd585829f0 (diff) | |
parent | f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13 (diff) | |
download | abslibre-1cba978702feff9a523baa185796f520602baffe.tar.gz abslibre-1cba978702feff9a523baa185796f520602baffe.tar.bz2 abslibre-1cba978702feff9a523baa185796f520602baffe.zip |
Merge branch 'master' of ssh://parabola-git/srv/git/abslibre/abslibre
Diffstat (limited to 'java/java-cup/PKGBUILD')
-rw-r--r-- | java/java-cup/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/java/java-cup/PKGBUILD b/java/java-cup/PKGBUILD new file mode 100644 index 000000000..97b41e20b --- /dev/null +++ b/java/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 +} |