aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-mime-types/APKBUILD
blob: b7c985497982c5b2804f9e7a322ca5cdf4f10f0a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=mime-types
pkgname=ruby-$_gemname
pkgver=1.23
pkgrel=0
pkgdesc="Ruby library for identification of a file's likely MIME content type"
url="http://mime-types.rubyforge.org/"
arch="noarch"
license="ruby or Perl Artistic or GPLv2+"
depends="ruby"
depends_dev=
makedepends="$depends_dev ruby-gems"
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="26b9ebe2f50e7ed6348475f7c520cfaf  mime-types-1.23.gem"
sha256sums="fa29671c5f80a5dbafe3111814f1bf289af91f422c1d1fa4c10bda63fab305b2  mime-types-1.23.gem"
sha512sums="d2e3c87c776d0e242c2b97c9ec8d630af05e504f815340137fbaeb19251ba096dc486117adddc9830940a80d3c0a81f0862c5c50838dc54c3d04c0231537d0df  mime-types-1.23.gem"