mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 13:30:31 +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:
15
.SRCINFO
15
.SRCINFO
@@ -1,18 +1,17 @@
|
|||||||
# Generated by mksrcinfo v8
|
|
||||||
# Wed Feb 7 18:49:41 UTC 2018
|
|
||||||
pkgbase = ruby-yajl-ruby
|
pkgbase = ruby-yajl-ruby
|
||||||
pkgdesc = Ruby C bindings to the excellent Yajl JSON stream-based parser library.
|
pkgdesc = Ruby C bindings to the excellent Yajl JSON stream-based parser library.
|
||||||
pkgver = 1.3.1
|
pkgver = 1.4.1
|
||||||
pkgrel = 2
|
pkgrel = 1
|
||||||
url = http://github.com/brianmario/yajl-ruby
|
url = http://github.com/brianmario/yajl-ruby
|
||||||
arch = any
|
arch = x86_64
|
||||||
|
arch = i686
|
||||||
license = MIT
|
license = MIT
|
||||||
depends = ruby
|
depends = ruby
|
||||||
depends = ruby-rdoc
|
depends = ruby-rdoc
|
||||||
noextract = yajl-ruby-1.3.1.gem
|
noextract = yajl-ruby-1.4.1.gem
|
||||||
options = !emptydirs
|
options = !emptydirs
|
||||||
source = https://rubygems.org/downloads/yajl-ruby-1.3.1.gem
|
source = https://rubygems.org/downloads/yajl-ruby-1.4.1.gem
|
||||||
sha512sums = f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4
|
sha256sums = 6e32e6e681c2861e99e7389ebcca70d56cb9357b223f09fb0857e2444ee1609b
|
||||||
|
|
||||||
pkgname = ruby-yajl-ruby
|
pkgname = ruby-yajl-ruby
|
||||||
|
|
||||||
|
|||||||
15
PKGBUILD
15
PKGBUILD
@@ -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
|
_gemname=yajl-ruby
|
||||||
pkgname=ruby-$_gemname
|
pkgname=ruby-$_gemname
|
||||||
pkgver=1.3.1
|
pkgver=1.4.1
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='Ruby C bindings to the excellent Yajl JSON stream-based parser library.'
|
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'
|
url='http://github.com/brianmario/yajl-ruby'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('ruby' 'ruby-rdoc')
|
depends=('ruby' 'ruby-rdoc')
|
||||||
options=(!emptydirs)
|
options=(!emptydirs)
|
||||||
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
||||||
noextract=($_gemname-$pkgver.gem)
|
noextract=($_gemname-$pkgver.gem)
|
||||||
sha512sums=('f18b47f1fd0b039bfec01db0ee298296199fbf91b22a00042e1220a1d8471f72424c082b696829e48ce7dee7514510dd731c2bc36fe29bd08ba7246c820621f4')
|
sha256sums=('6e32e6e681c2861e99e7389ebcca70d56cb9357b223f09fb0857e2444ee1609b')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
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
|
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
|
||||||
rm "$pkgdir/$_gemdir/cache/$_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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user