updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jing / PKGBUILD
blob5208214afd2fba364d739bb0b5023952a415c9f8
1 # Contributor: Nicky726 <nicky726 <at> gmail <dot> com>
2 pkgname=jing
3 pkgver=20091111
4 pkgrel=1
5 pkgdesc="CLI tool to validate Relax NG schemes written in Java"
6 arch=('i686' 'x86_64')
7 license=('BSD')
8 url=(http://www.thaiopensource.com/relaxng/jing.html)
9 source=(http://jing-trang.googlecode.com/files/${pkgname}-${pkgver}.zip
10         ${pkgname}
12 depends=('java-runtime')
13 md5sums=('13eef193921409a1636377d1efbf9843'
14          '2991ca1032129eb4e0471e8c41f35ae5')
16 build() {
18         cd "${srcdir}/${pkgname}-${pkgver}/bin"
20         # Prepare directories 
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