blob: 0e6be02d901cbe96f6b1b9ea0ac9f7666cd6d67d (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Mario Finelli <mario at finel dot li>
_gemname=dry-container
pkgname=ruby-$_gemname
pkgver=0.11.0
pkgrel=1
pkgdesc='A simple container intended for use as an IoC container'
arch=('any')
url='https://github.com/dry-rb/dry-container'
license=('MIT')
depends=('ruby' 'ruby-concurrent')
makedepends=('git' 'ruby-rdoc')
options=('!emptydirs')
_commit='eff66c2e4bac92d9e888a8900c9f711a21913949'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() {
cd "$pkgname"
gem build
}
package() {
cd "$pkgname"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install \
--verbose \
--local \
--ignore-dependencies \
--no-user-install \
--install-dir "$pkgdir/$_gemdir" \
--bindir "$pkgdir/usr/bin" \
"$_gemname-$pkgver.gem"
# delete cache
rm -vrf "$pkgdir/$_gemdir/cache"
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|