1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Update to more recent version.

Also clean up PKGBUILD a bit:
- Use sha256 sums instead of sha512 since upstream supplies them
- Correctly specify arch, since this is a binary package.
- Fix LICENSE file path
- Remove annoying build artifact containing $pkgdir
This commit is contained in:
2018-07-28 23:21:02 +02:00
parent 9bf18e255f
commit ac6545c496
2 changed files with 16 additions and 14 deletions

View File

@@ -1,18 +1,17 @@
# Generated by mksrcinfo v8
# Wed Feb 7 18:49:41 UTC 2018
pkgbase = ruby-yajl-ruby
pkgdesc = Ruby C bindings to the excellent Yajl JSON stream-based parser library.
pkgver = 1.3.1
pkgrel = 2
pkgver = 1.4.1
pkgrel = 1
url = http://github.com/brianmario/yajl-ruby
arch = any
arch = x86_64
arch = i686
license = MIT
depends = ruby
depends = ruby-rdoc
noextract = yajl-ruby-1.3.1.gem
noextract = yajl-ruby-1.4.1.gem
options = !emptydirs
source = https://rubygems.org/downloads/yajl-ruby-1.3.1.gem
sha512sums = f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4
source = https://rubygems.org/downloads/yajl-ruby-1.4.1.gem
sha256sums = 6e32e6e681c2861e99e7389ebcca70d56cb9357b223f09fb0857e2444ee1609b
pkgname = ruby-yajl-ruby

View File

@@ -1,22 +1,25 @@
# Maintainer: Carsten Feuls <archlinux@carstenfeuls.de>
# Maintainer: Bert Peters <bert@bertptrs.nl>
# Contributor: Carsten Feuls <archlinux@carstenfeuls.de>
_gemname=yajl-ruby
pkgname=ruby-$_gemname
pkgver=1.3.1
pkgrel=2
pkgver=1.4.1
pkgrel=1
pkgdesc='Ruby C bindings to the excellent Yajl JSON stream-based parser library.'
arch=('any')
arch=('x86_64' 'i686')
url='http://github.com/brianmario/yajl-ruby'
license=('MIT')
depends=('ruby' 'ruby-rdoc')
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4')
sha256sums=('6e32e6e681c2861e99e7389ebcca70d56cb9357b223f09fb0857e2444ee1609b')
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}/usr/lib/ruby/gems/2.5.0/gems/yajl-ruby-1.3.1/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
# This file has an annoying path to reproduce, just use find
find "$pkgdir/$_gemdir" -name gem_make.out -delete
install -D -m644 "${pkgdir}/usr/lib/ruby/gems/2.5.0/gems/${_gemname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}