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

Make install path version agnostic.

This commit is contained in:
2019-01-21 19:44:56 +01:00
parent 31427d6a9c
commit 4ff1a11b23
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
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.4.1 pkgver = 1.4.1
pkgrel = 1 pkgrel = 2
url = http://github.com/brianmario/yajl-ruby url = http://github.com/brianmario/yajl-ruby
arch = x86_64 arch = x86_64
arch = i686 arch = i686

View File

@@ -4,7 +4,7 @@
_gemname=yajl-ruby _gemname=yajl-ruby
pkgname=ruby-$_gemname pkgname=ruby-$_gemname
pkgver=1.4.1 pkgver=1.4.1
pkgrel=1 pkgrel=2
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=('x86_64' 'i686' 'armv7h') arch=('x86_64' 'i686' 'armv7h')
url='http://github.com/brianmario/yajl-ruby' url='http://github.com/brianmario/yajl-ruby'
@@ -21,5 +21,5 @@ package() {
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
# This file has an annoying path to reproduce, just use find # This file has an annoying path to reproduce, just use find
find "$pkgdir/$_gemdir" -name gem_make.out -delete 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" install -D -m644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
} }