# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Geoffroy Carrier pkgname=javacc pkgver=4.2 pkgrel=2 pkgdesc="A parser generator for use with Java[tm]" arch=('i686' 'x86_64') url="https://javacc.dev.java.net/" license=('BSD') depends=(java-runtime) source=(https://javacc.dev.java.net/files/documents/17/117793/javacc-4.2.tar.gz) build() { cd "$srcdir/$pkgname-$pkgver" install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" rm bin/*.bat LICENSE install -d "$pkgdir/usr/share/java" "$pkgdir/usr/bin" cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/usr/share/java/$pkname" cd "$srcdir" for _exe in javacc jjdoc jjtree do cat << EOF > $_exe #!/bin/sh exec /usr/share/java/$pkgname-$pkgver/bin/$_exe \$@ EOF install -Dm755 $_exe "$pkgdir/usr/bin/$_exe" done } md5sums=('8d8e2f6481e933939eb4c561f08bd89f')