updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / parboiled / PKGBUILD
blob7bfa0db5cae3c099ea0e19242445689b2ede2109
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 pkgname=parboiled
4 pkgver=0.11.1
5 pkgrel=2
6 pkgdesc="A pure Java library providing for lightweight and easy-to-use, yet powerful and elegant parsing of arbitrary input text based on Parsing expression grammars (PEGs)"
7 arch=('any')
8 url="http://parboiled.org/"
9 depends=('java-runtime' 'java-asm')
10 license=('APACHE')
11 source=(http://github.com/downloads/sirthias/$pkgname/${pkgname}-core-${pkgver}.jar
12                 http://github.com/downloads/sirthias/$pkgname/${pkgname}-java-${pkgver}.jar
13                 setClasspath.sh)
15 package() {
16         cd $srcdir
18         install -D -m644 setClasspath.sh $pkgdir/usr/share/java/$pkgname/setClasspath.sh
19         for i in *.jar; do
20                 install -m644 ${i} $pkgdir/usr/share/java/$pkgname
21         done
23         cd $pkgdir/usr/share/java/$pkgname
25         for i in *.jar; do
26                 _no_version_link=${i##*\/}
27                 ln -sf ${_no_version_link} ${_no_version_link/-[0-9]\.[0-9][0-9]\.[0-9]/}
28         done
31 md5sums=('6535b819e780dba98b886c8ea4b00ba5'
32          '5e934cf3df9b530248579ae293065cab'
33          '4c9267fcfb2afeb6f6dd790caf595bec')
34 sha256sums=('f756418141c0eb5fa3bf185c7091291e41b1a482893e9a5f73ba3c4a9b0b03cb'
35             'f9325c51a9575c27f4a3b7ee243a88ba59ee9a53a9c21dc662d45aed1924b5e9'
36             '570a3f260b9aaf1a0d31b32aefb265d884df4b9207e00bb7907a1b59895ce517')