aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-net-ldap/APKBUILD
blob: a33644ad52502c1b72f15c2fee7dd549f0dd34c4 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=net-ldap
pkgname=ruby-net-ldap
pkgver=0.12.1
pkgrel=0
pkgdesc="Ruby ldap client"
url="http://rubyldap.com/"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=
makedepends="$depends_dev ruby"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

build() {
	return 0
}

package() {
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
	mkdir -p "$pkgdir" || return 1

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-rdoc --no-ri \
		"$srcdir"/$_gemname-$pkgver.gem || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

md5sums="3e15c0180861ed9b9567f5ac919d4bf8  net-ldap-0.12.1.gem"
sha256sums="864ce59bc51ab5a83a344a477a07def3b9691dd8a2b11f52dca3af45e707327c  net-ldap-0.12.1.gem"
sha512sums="013a66a0fa7e6027c5f31776d136294161936ae7dc2ec86a5342a2a2d575e5764ab06e11a7532c56e5c4ce95ab91a2ab4cc8628e6f1fcc879b9282c08142c31a  net-ldap-0.12.1.gem"