Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Jul 14th, 2011  |  syntax: Bash  |  size: 0.95 KB  |  hits: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: lolilolicon < (l[oi]){2}con@gmail.com >
  2.  
  3. pkgname=ruby-redcloth
  4. _gemname=RedCloth
  5. pkgver=4.2.7
  6. pkgrel=3
  7. pkgdesc="Module for using the Textile markup language in Ruby."
  8. provides=(redcloth)
  9. replaces=(redcloth)
  10. conflicts=(redcloth)
  11. arch=(i686 x86_64)
  12. url="http://redcloth.org/"
  13. license=('MIT')
  14. depends=('ruby')
  15. makedepends=(rubygems)
  16. source=(http://rubygems.org/downloads/$_gemname-$pkgver.gem)
  17. noextract=("$_gemname-$pkgver.gem")
  18. md5sums=('939c0a4763c9612d94f99a6fd2e550e0')
  19.  
  20. build() {
  21.   cd "$srcdir"
  22.  
  23.   # Removing -Werror switch preventing compilation on Arch
  24.   gem unpack $_gemname-$pkgver.gem
  25.   cd $_gemname-$pkgver
  26.   sed -i "s/ -Werror//g" tasks/compile.rake ext/redcloth_scan/extconf.rb
  27.   gem build redcloth.gemspec
  28.  
  29.   local _gemdir=$(ruby -rubygems -e'puts Gem.default_dir')
  30.  
  31.   gem install --ignore-dependencies --verbose \
  32.     -i "$pkgdir$_gemdir" -n "$pkgdir"/usr/bin "$srcdir/$_gemname-$pkgver/$_gemname-$pkgver.gem"
  33. }