updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / jsdoc-toolkit / PKGBUILD
blob7ec8814c02a2e2aab31f47c7011e2b4f9cd300cc
1 # Maintainer: xhochy <uwelk@xhochy.org>
3 # need to choose anonther name since heimdal is still blacklisted
4 pkgname=jsdoc-toolkit
5 # Do not install the config as this will conflict with krb5
6 pkgver=2.4.0
7 pkgrel=2
8 pkgdesc="Documentation generator for JavaScript"
9 arch=('i686' 'x86_64')
10 url="http://code.google.com/p/jsdoc-toolkit/"
11 license=('custom')
12 depends=('rhino')
13 # Do not install the config as this will conflict with krb5
14 # backup=(etc/krb5/krb5.conf)
15 options=('!libtool' '!emptydirs')
16 source=(http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-${pkgver}.zip
17   ignore-token.patch
18   jsdoc
20 sha1sums=('bd276ec58dbd419326760226174eba09810d26ee' # jsdoc_toolkit-${pkgver}.zip
21           'f3a31674c0fcdf1e2dfd95daf0abd4451e7d0a9a' # ignore-token.patch
22           '285b5c353712c419f1b9b41691aac7160efaf37f' # jsdoc
25 build() {
26   cd ${srcdir}/jsdoc_toolkit-${pkgver}/jsdoc-toolkit/
27   patch -p2 < ../../ignore-token.patch
30 package() {
31   install -Dm755 ${srcdir}/jsdoc_toolkit-${pkgver}/jsdoc-toolkit/jsrun.jar ${pkgdir}/usr/share/java/jsrun.jar
32   install -Dm755 ${srcdir}/jsdoc ${pkgdir}/usr/bin/jsdoc
33   mkdir -p ${pkgdir}/usr/share/jsdoc-toolkit
34   cp -r ${srcdir}/jsdoc_toolkit-${pkgver}/jsdoc-toolkit/app ${pkgdir}/usr/share/jsdoc-toolkit/app
35   cp -r ${srcdir}/jsdoc_toolkit-${pkgver}/jsdoc-toolkit/templates ${pkgdir}/usr/share/jsdoc-toolkit/templates
36   chown -R root:root ${pkgdir}/usr/share/jsdoc-toolkit