1 # Packager: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2 # Packager: Sonny Piers <sonny@fastmail.net>
7 pkgdesc='Idiomatic XMPP client, component & server library for node.js'
9 url="http://github.com/astro/node-xmpp"
11 depends=("nodejs>=0.4.0" "node-expat>=1.2.0" "ltx>=0.0.4")
12 optdepends=('node-stringprep: for icu-based string normalization.')
13 source=("https://github.com/astro/node-xmpp/tarball/v${pkgver}")
14 md5sums=('8f9e2dcbebb5b624fd0e788ef42dc0f3')
17 cd $srcdir/astro-node-xmpp-8fd7f4d
19 mkdir -p $pkgdir/usr/lib/node/$pkgname
20 cp -r lib/* $pkgdir/usr/lib/node/$pkgname
22 echo "#!/usr/bin/env node
23 module.exports = require('./node-xmpp/xmpp');" > $pkgdir/usr/lib/node/node-xmpp.js
25 sed -i "s,\.\./lib/,," examples/*.js
26 mkdir -p $pkgdir/usr/share/$pkgname/examples/
27 cp -r examples/* $pkgdir/usr/share/$pkgname/examples/
29 mkdir -p $pkgdir/usr/share/$pkgname/
30 install -Dm0644 README.markdown $pkgdir/usr/share/$pkgname/README.markdown