updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / pegdown / PKGBUILD
blob065e5cc1ed8b9005e81fa44a6d584fa91249a755
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 pkgname=pegdown
4 pkgver=0.9.2
5 pkgrel=1
6 pkgdesc="A pure Java library for clean and lightweight Markdown processing"
7 arch=('any')
8 url="http://github.com/sirthias/pegdown"
9 depends=('java-runtime' 'parboiled>=0.11.1')
10 license=('APACHE')
11 source=(http://github.com/downloads/sirthias/$pkgname/${pkgname}-${pkgver}.jar
12                 setClasspath.sh)
14 package() {
15         cd $srcdir
17         install -D -m644 setClasspath.sh $pkgdir/usr/share/java/$pkgname/setClasspath.sh
18         install -m644 ${pkgname}-${pkgver}.jar $pkgdir/usr/share/java/$pkgname
20         cd $pkgdir/usr/share/java/$pkgname
22         for i in *.jar; do
23                 _no_version_link=${i##*\/}
24                 ln -sf ${_no_version_link} ${_no_version_link/-[0-9]\.[0-9]\.[0-9]/}
25         done
28 md5sums=('74bfa166c5bd31539b8d6bef851f591a'
29          '18d0a7d66d07f052fdc9194b4a5513f7')
30 sha256sums=('a58378d17f30cad5ec53101e1b509fee8045b222464764287d8ffc73da490186'
31             '1ae2d4ec87dce6dadc21f31d3385b5fee5d013c59266511a5f74a4b034bb1c4f')