1 # Contributor: Nicky726 <nicky726 <at> gmail <dot> com>
5 pkgdesc="CLI tool to validate Relax NG schemes written in Java"
8 url=(http://www.thaiopensource.com/relaxng/jing.html)
9 source=(http://jing-trang.googlecode.com/files/${pkgname}-${pkgver}.zip
12 depends=('java-runtime')
13 md5sums=('13eef193921409a1636377d1efbf9843'
14 '2991ca1032129eb4e0471e8c41f35ae5')
18 cd "${srcdir}/${pkgname}-${pkgver}/bin"
21 install -m755 -d "${pkgdir}/usr/share/java/${pkgname}"
22 install -m755 -d "${pkgdir}/usr/share/${pkgname}"
23 install -m755 -d "${pkgdir}/usr/bin"
25 # For future releases there should be some shared libs removed before copying the ohters
26 # All jars to /usr/share/java/jing
27 install -m644 *.jar "${pkgdir}/usr/share/java/${pkgname}" || return 1
29 # All other things to /usr/share/jing
30 cd "${srcdir}/${pkgname}-${pkgver}"
31 cp -r lib "${pkgdir}/usr/share/${pkgname}/" || return 1
32 cp -r doc "${pkgdir}/usr/share/${pkgname}/" || return 1
33 cp -r sample "${pkgdir}/usr/share/${pkgname}/" || return 1
34 install -m644 readme.html "${pkgdir}/usr/share/${pkgname}/" || return 1
36 # Copy script to /usr/bin
37 install -m755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin" || return 1