updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / node-xmpp / PKGBUILD
blob48936f77f29e5493874052f121c84d6226452757
1 # Packager: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2 # Packager: Sonny Piers <sonny@fastmail.net>
4 pkgname=node-xmpp
5 pkgver=0.2.11
6 pkgrel=1
7 pkgdesc='Idiomatic XMPP client, component & server library for node.js'
8 arch=(i686 x86_64)
9 url="http://github.com/astro/node-xmpp"
10 license="GPLv3"
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')
16 build() {
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