summaryrefslogtreecommitdiffstats
path: root/testing/ruby-daemon-controller/APKBUILD
blob: 7acd780215b5c6a51544d5aad28dba52d1e26828 (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
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer:  Matt Smith <mcs@darkregion.net>
pkgname=ruby-daemon-controller
_gemname=daemon_controller
pkgver=1.1.1
pkgrel=0
pkgdesc="A library for robust daemon management."
url="http://rubygems.org/gems/daemon_controller"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$pkgver
build() {
	mkdir -p "$_builddir" || return 1
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
		--ignore-dependencies \
		--verbose \
		--no-rdoc \
		--no-ri \
		|| return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

package() {
	mkdir -p "$pkgdir" || return 1
	cp -ra "$_builddir"/* "$pkgdir"/ || return 1
}
md5sums="d0208bf1e929276dc14665b2cd435535  daemon_controller-1.1.1.gem"
sha256sums="c82bab2e6b6f9443aca51f7f429ac3eb877442f9062da9b28b1a6b329e344ca5  daemon_controller-1.1.1.gem"
sha512sums="fc87dd6deb7db955dc8e75899ea8282cf5755dc76b4139624c6fc8c5caf1b8d995c0e76b3b8222592c4331fa99da890f420a09419ef5c66a680d4dcab0d140fe  daemon_controller-1.1.1.gem"