archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / ruby-multi_json / trunk / PKGBUILD
blob6b962a524532c8e061c0d90750f2bdd7319e7833
1 # Maintainer: Tim Meusel <tim@bastelfreak.de>
2 # Contributor: Felix Yan <felixonmars@archlinux.org>
4 _gemname=multi_json
5 pkgname="ruby-${_gemname}"
6 pkgver=1.15.0
7 pkgrel=3
8 pkgdesc='A common interface to multiple JSON libraries.'
9 arch=('any')
10 url="https://github.com/intridea/${_gemname}"
11 license=('MIT')
12 depends=('ruby')
13 makedepends=('ruby-rdoc')
14 options=('!emptydirs')
15 source=("https://rubygems.org/downloads/${_gemname}-$pkgver.gem")
16 noextract=("${_gemname}-${pkgver}.gem")
17 sha512sums=('5021b66bd607bde8679899ff48fbf596cdf6a4f6c026472b20f25bd1933d105bef597c143ab529804d7b5a4a244476be24555f13a7fbe9fef30bbe1fb92978eb')
19 package() {
20   local _gemdir="$(ruby -e'puts Gem.default_dir')"
21   gem install --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
22   rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
23   install -D -m644 "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"