mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
24 lines
975 B
Bash
24 lines
975 B
Bash
# Generated by gem2arch (https://github.com/anatol/gem2arch)
|
|
# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>
|
|
|
|
_gemname=yajl-ruby
|
|
pkgname=ruby-$_gemname
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc='Ruby C bindings to the excellent Yajl JSON stream-based parser library.'
|
|
arch=(i686 x86_64)
|
|
url='http://github.com/brianmario/yajl-ruby'
|
|
license=(MIT)
|
|
depends=(ruby)
|
|
options=(!emptydirs)
|
|
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
|
noextract=($_gemname-$pkgver.gem)
|
|
sha512sums=('32722b7c8a8408752716654f91b50aad98fd24ef72438d69531553ece4f63ffd3f78d7745a9e053e297f2c4a96af7638eea6271893b586a6a01482f71ab27fe6')
|
|
|
|
package() {
|
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
|
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
|
|
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
|
|
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
|
|
}
|