blob: 3e44d1fbac705de21ddd485ca884725ca0438d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>
_gemname=oci
pkgname=ruby-${_gemname}
pkgver=2.21.1
pkgrel=1
pkgdesc='Ruby SDK for Oracle Cloud Infrastructure'
arch=('x86_64')
url='https://github.com/oracle/oci-ruby-sdk'
license=('Apache-2.0 OR UPL-1.0')
depends=('ruby' 'ruby-inifile' 'ruby-jwt')
makedepends=('ruby-rdoc')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('4282265c0c9bbba1a7413df2d40f03e7ee6d8e3ac7befd423318ebb1bd5a8223')
build() {
cd "${_gemname}-ruby-sdk-${pkgver}"
gem build ${_gemname}.gemspec
}
package() {
cd "${_gemname}-ruby-sdk-${pkgver}"
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 -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|