summaryrefslogtreecommitdiffstats
path: root/main/ruby-rmagick/APKBUILD
blob: dc48f7d7ceb6bcd54ea4c02aaf7f762d26061701 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-rmagick
_gemname=rmagick
pkgver=2.13.4
pkgrel=1
pkgdesc="Ruby ImageMagick interface"
url="http://rmagick.rubyforge.org"
arch="all"
license="custom"
depends="ruby ghostscript-fonts"
depends_dev="ruby-dev imagemagick-dev freetype-dev libjpeg-turbo-dev zlib-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_realname-$pkgver
build() {
	return 0
}

package() {
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
	mkdir -p "$pkgdir" || return 1

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-rdoc --no-ri \
		"$srcdir"/$_gemname-$pkgver.gem || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

md5sums="2be71aebd8050fdc0c09ae33a8590af7  rmagick-2.13.4.gem"
sha256sums="7877ce2fe1b05e51e62b0a4f5d17ecae6223c17bdb61c9b4e1715dd74d541afa  rmagick-2.13.4.gem"
sha512sums="c458867654af82adf10e74408055920e01963292c7890b581f473f30a8b090998f085f1701e42190ee1f62de44fcecb5e593df74e68c9d7a8fc8050f359ff643  rmagick-2.13.4.gem"