SHARE
TWEET

PKGBUILD for ruby-rmagick

a guest Jul 11th, 2015 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
  2. # Contributor: Dmitry Kharitonov <darksab0r@gmail.com>
  3.  
  4. _gemname=rmagick
  5. pkgname=ruby-rmagick
  6. pkgver=2.15.2
  7. pkgrel=1
  8. pkgdesc="RMagick is an interface between the Ruby programming language and the ImageMagick image processing library"
  9. arch=('i686' 'x86_64')
  10. url='https://github.com/rmagick/rmagick'
  11. license=('GPL')
  12. depends=('ruby>=1.8.5' 'imagemagick>=6.4.9')
  13. #source=("https://github.com/rmagick/rmagick/archive/RMagick_${pkgver//./-}.tar.gz")
  14. source=("https://rubygems.org/downloads/rmagick-$pkgver.gem")
  15. sha256sums=('33aae1aa0035e4fe20ae8700a5035d306188eeac3eb2297d3459dcda1bb44964')
  16.  
  17. package() {
  18.   local _gemdir="$(ruby -e'puts Gem.default_dir')"
  19.   gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  20.   rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
  21.   install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top