blob: 3c3a1caf376980c8fdc2a467e4e24228f5c57fea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Contributor: Artem Vorotnikov <artem@vorotnikov.me>
_gemname=simple_oauth
pkgname=ruby-$_gemname
pkgver=0.3.1
pkgrel=2
pkgdesc='Simply builds and verifies OAuth headers'
arch=(any)
url='https://github.com/laserlemon/simple_oauth'
license=(MIT)
depends=(ruby)
makedepends=(ruby-rdoc)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('206512ba643b60de3601d11add691c0f6386ea62e8516651d525b5956ca7d8009e167f8acd8375ba07ae8ec598dcf115bc6813c4028a836827b618db9ce6939a')
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/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
|