diff options
author | aurelien <aurelien@cwb.io> | 2013-09-23 10:33:22 +0200 |
---|---|---|
committer | aurelien <aurelien@cwb.io> | 2013-09-23 10:33:22 +0200 |
commit | 2735c9d273c54b555681f30f5c685998fed7b484 (patch) | |
tree | f8172dbea44d1c4751a99a62fb236a14c9d2dc20 /java/javacc | |
parent | d78a32a6ccb8663a62a093b54e947e2efc840fe0 (diff) | |
parent | 97f65e06566f3bb15bc7395624017b8e6ca0d043 (diff) | |
download | abslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.gz abslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.bz2 abslibre-2735c9d273c54b555681f30f5c685998fed7b484.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'java/javacc')
-rw-r--r-- | java/javacc/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/java/javacc/PKGBUILD b/java/javacc/PKGBUILD new file mode 100644 index 000000000..032fd7b25 --- /dev/null +++ b/java/javacc/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=javacc +pkgver=5.0 +pkgdesc="Java Compiler Compiler; a parser generator" +url="http://javacc.java.net/" +license=('BSD3') + +arch=('any') +pkgrel=2.1 +depends=('java-runtime') +makedepends=('apache-ant' 'junit' 'jh') +source=("http://java.net/projects/${pkgname}/downloads/download/${pkgname}-${pkgver}src.tar.gz") + +prepare() { + cd "$srcdir/$pkgname" + rm lib/junit3.8.1/junit.jar + ln -s /usr/share/java/junit.jar lib/junit3.8.1 + #rm bootstrap/javacc.jar +} + +build() { + cd "$srcdir/$pkgname" + + sed -i \ + -e 's|<modelVersion>.*</modelVersion>|<modelVersion>4.0.0</modelVersion>|' \ + -e "s|<version>.*</version>|<version>$pkgver</version>|" \ + pom.xml + + for prog in javacc jjdoc jjtree; do + sed -i 's|JAR=.*|JAR=/usr/share/java/javacc.jar|' bin/$prog + done + + CLASSPATH=/usr/share/java/junit.jar ant +} + +package() { + cd "$srcdir/$pkgname" + + for prog in javacc jjdoc jjrun jjtree; do + install -Dm755 bin/$prog "$pkgdir"/usr/bin/$prog + done + install -Dm644 bin/lib/javacc.jar "$pkgdir"/usr/share/java/javacc.jar + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +md5sums=('871d78a2a5859c2eebc712c1f8135be5') |