blob: 6f76d1e0b784b4bb3da9d1ec54b446c144f2fe10 (
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
39
40
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=mime-types
pkgname=ruby-$_gemname
######### ruby gems dependency hell #########
# ruby-mail needs 1.x version of mime-types #
#############################################
pkgver=1.25.1
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"
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="54a5c6e16bd0992345f8da6489773167 mime-types-1.25.1.gem"
sha256sums="88ef3c596481678710ffd4018fa40f1999b02d97babea39682ba7d5badd21f56 mime-types-1.25.1.gem"
sha512sums="50a79bc0378bb9bf694656b15ac69446447fc863a5a6556e68ad736768627c9f43e59c68b0ed141cee5dbd81a8ccca1a33a61aa01af7d0a5949b00d6edb6525e mime-types-1.25.1.gem"
|