blob: 581340d8e36f517d84e33ffa701a6766d8b8181b (
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
30
31
32
33
34
35
36
37
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Husam Bilal <me@husam.dev>
# Contributor: henning mueller <henning@orgizm.net>
pkgname=ruby-libvirt
_gemname=$pkgname
pkgver=0.8.4
pkgrel=1
pkgdesc='Ruby bindings for libvirt.'
arch=(i686 x86_64)
license=(LGPL-2.1-or-later)
url=https://gitlab.com/libvirt/libvirt-ruby
depends=(ruby libvirt glibc)
makedepends=(rubygems ruby-rake ruby-rdoc)
source=("${url}/-/archive/${pkgname}-${pkgver}/libvirt-ruby-${pkgname}-${pkgver}.tar.gz")
sha256sums=('9c9a04da813573d9714bb93ee14a4797a84f3ed515d06e82394e5c4ff90473bc')
build() {
cd libvirt-ruby-${_gemname}-${pkgver}
rake build
rake gem
}
check() {
cd libvirt-ruby-${_gemname}-${pkgver}
rake test
}
package() {
cd libvirt-ruby-${_gemname}-${pkgver}/pkg
local _gemdir="$(gem env gemdir)"
gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
-n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
install -Dm 644 ${pkgname}-${pkgver}/README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 ${pkgname}-${pkgver}/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
rm -r "${pkgdir}/${_gemdir}/cache"
}
|