mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 12:40:30 +01:00
Add 'ruby-yajl-ruby/' from commit '4ff1a11b23b92f7788edbcbea8ae9551db36044c'
git-subtree-dir: ruby-yajl-ruby git-subtree-mainline:b81893211cgit-subtree-split:4ff1a11b23
This commit is contained in:
18
ruby-yajl-ruby/.SRCINFO
Normal file
18
ruby-yajl-ruby/.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
||||
pkgbase = ruby-yajl-ruby
|
||||
pkgdesc = Ruby C bindings to the excellent Yajl JSON stream-based parser library.
|
||||
pkgver = 1.4.1
|
||||
pkgrel = 2
|
||||
url = http://github.com/brianmario/yajl-ruby
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
arch = armv7h
|
||||
license = MIT
|
||||
depends = ruby
|
||||
depends = ruby-rdoc
|
||||
noextract = yajl-ruby-1.4.1.gem
|
||||
options = !emptydirs
|
||||
source = https://rubygems.org/downloads/yajl-ruby-1.4.1.gem
|
||||
sha256sums = 6e32e6e681c2861e99e7389ebcca70d56cb9357b223f09fb0857e2444ee1609b
|
||||
|
||||
pkgname = ruby-yajl-ruby
|
||||
|
||||
4
ruby-yajl-ruby/.gitignore
vendored
Normal file
4
ruby-yajl-ruby/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*
|
||||
!.gitignore
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
25
ruby-yajl-ruby/PKGBUILD
Normal file
25
ruby-yajl-ruby/PKGBUILD
Normal file
@@ -0,0 +1,25 @@
|
||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
# Contributor: Carsten Feuls <archlinux@carstenfeuls.de>
|
||||
|
||||
_gemname=yajl-ruby
|
||||
pkgname=ruby-$_gemname
|
||||
pkgver=1.4.1
|
||||
pkgrel=2
|
||||
pkgdesc='Ruby C bindings to the excellent Yajl JSON stream-based parser library.'
|
||||
arch=('x86_64' 'i686' 'armv7h')
|
||||
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)
|
||||
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"
|
||||
# This file has an annoying path to reproduce, just use find
|
||||
find "$pkgdir/$_gemdir" -name gem_make.out -delete
|
||||
install -D -m644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user