updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xmppjs-hg / PKGBUILD
blob4186553da20c24e1108c0ffef96e2b3388ef34fc
1 # Packager: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2 pkgname=xmppjs-hg
3 pkgver=19
4 pkgrel=1
5 pkgdesc='xmpp.js is a server-side XMPP library for Node.js'
6 arch=('i686' 'x86_64')
7 provides=('xmppjs')
8 conflicts=('xmppjs')
9 url='http://xmppjs.prosody.im/'
10 license='MIT'
11 depends=('nodejs' 'node-xml')
12 makedepends=('mercurial')
14 _hgroot="http://code.matthewwild.co.uk/"
15 _hgrepo="xmppjs"
17 build() {
18         cd $srcdir/$_hgrepo
20         sed -i 's,"./node-xml/lib/node-xml","node-xml",; s,"./sha1","sha1",' xmpp.js
21         mkdir -p $pkgdir/usr/lib/node/
22         install -Dm0644 *.js $pkgdir/usr/lib/node/
24         sed -i 's,"../xmpp","xmpp",' examples/*
25         mkdir -p $pkgdir/usr/share/$_hgrepo/examples/
26         install -Dm0644 examples/* $pkgdir/usr/share/$_hgrepo/examples/
28         install -Dm0644 COPYING $pkgdir/usr/share/licenses/$_hgrepo/COPYING
29         install -Dm0644 README.markdown $pkgdir/usr/share/$_hgrepo/README.markdown