Skip to content

Instantly share code, notes, and snippets.

@joschi

joschi/PKGBUILD Secret

Created November 20, 2012 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joschi/7d0e8ddfb74d1ececfa3 to your computer and use it in GitHub Desktop.
Save joschi/7d0e8ddfb74d1ececfa3 to your computer and use it in GitHub Desktop.
ruby-stomp 1.2.7-1
_gemname=stomp
pkgname=ruby-$_gemname
pkgver=1.2.7
pkgrel=1
pkgdesc="Ruby client for the Stomp messaging protocol"
arch=(any)
url="http://stomp.codehaus.org/"
license=("GPL")
depends=('ruby')
makedepends=('rubygems')
source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
package() {
cd "$srcdir"
# _gemdir is defined inside package() because if ruby[gems] is not installed on
# the system, makepkg will exit with an error when sourcing the PKGBUILD.
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \
-n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
}
md5sums=('91764e18d9b4cc56168479fc56edb849')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment