diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 08:59:12 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 09:01:18 +0000 |
commit | 346fc8d9df58cde834d1af9d1508e5d602a38353 (patch) | |
tree | 2384511635c467344d4b3601acbff53cac074fa0 /testing | |
parent | d7f57e76634df07856d85849ca80f1670653809e (diff) | |
download | aports-346fc8d9df58cde834d1af9d1508e5d602a38353.tar.bz2 aports-346fc8d9df58cde834d1af9d1508e5d602a38353.tar.xz |
testing/ruby-mime-types: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-mime-types/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-mime-types/APKBUILD b/testing/ruby-mime-types/APKBUILD new file mode 100644 index 0000000000..09a1b3b072 --- /dev/null +++ b/testing/ruby-mime-types/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> + +_gemname=mime-types +pkgname=ruby-$_gemname +pkgver=2.6.1 +pkgrel=0 +pkgdesc="The mime-types library provides a library and registry for information about MIME content type definitions" +arch="noarch" +url="https://github.com/mime-types/ruby-mime-types/" +license="MIT 'Artistic 2.0' GPL-2" +depends="ruby" +depends_dev= +makedepends="$depends_dev" +source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" +_builddir="$srcdir"/$_gemname-$pkgver + +build() { + mkdir -p "$_builddir" || return 1 + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} + +md5sums="c6eb79803c29ce8be408f18df5bf361c mime-types-2.6.1.gem" +sha256sums="5b16d655397aa5cd8b4108494f60f64b4e18a2c92dc9257ff74ec64284dbd9ee mime-types-2.6.1.gem" +sha512sums="1986dfa92126f8f8dfdd5ee220f9a1220b844e1c73b95378c3f3801fe793f5799065a77d23a82d8fabcef82b9d179b0b56017f2952064fa019a418d0de55e9fe mime-types-2.6.1.gem" |