1 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 pkgname=ruby-enterprise-stompserver
5 pkgdesc="Stomp messaging server with file/dbm/memory/activerecord based FIFO queues, queue monitoring, and basic authentication."
7 url="http://rubyforge.org/projects/stompserver/"
9 depends=('ruby-enterprise' 'ruby-enterprise-daemons' 'ruby-enterprise-eventmachine' 'ruby-enterprise-hoe')
10 source=(http://gems.rubyforge.org/gems/stompserver-$pkgver.gem stompserver.rc.d stompserver.conf)
11 noextract=(stompserver-$pkgver.gem)
15 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
16 # makepkg will exit with an error when sourcing the PKGBUILD
17 local _gemdir="$(/opt/ruby-enterprise/bin/ruby -rubygems -e'puts Gem.default_dir')"
19 /opt/ruby-enterprise/bin/gem install --ignore-dependencies -i "$pkgdir$_gemdir" stompserver-$pkgver.gem
20 mv "$pkgdir$_gemdir/bin" "$pkgdir/opt/ruby-enterprise/bin"
21 install -d -m0755 -o nobody -g nobody "$pkgdir/var/lib/stompserver"
22 install -D -m0755 "$srcdir/stompserver.rc.d" "$pkgdir/etc/rc.d/stompserver"
23 install -D -m0644 "$srcdir/stompserver.conf" "$pkgdir/etc/stompserver.conf"
26 md5sums=('736ea1e8940d885b42a744652fb56906'
27 '37e6b3422d9d86b0a496b54bb623bc80'
28 '68c66af98893619620e46a6909b3bb02')