blob: 252b62d4a1e13da49ab4a7b88b06c47119b0b51c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: Dmitry Kharitonov <arch[at]nano-model[dot]com>
# Contributor: Olivier Mehani <shtrom-aur@ssji.net>
_gemname=rmagick
pkgname=ruby-rmagick
pkgver=4.2.6
pkgrel=1
pkgdesc="RMagick is an interface between the Ruby programming language and the ImageMagick image processing library"
arch=('any')
url='https://github.com/rmagick/rmagick'
license=('MIT')
depends=('ruby' 'imagemagick')
optdepends=('libmagick6: for ImageMagick 6 support')
source=("https://rubygems.org/downloads/rmagick-$pkgver.gem")
sha256sums=('8a2cd4f2fed24d54567c2e6fb1d1dc03129d56c65216ecc566facbd50e46a92f')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/imagemagick6/pkgconfig \
gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|