summaryrefslogtreecommitdiffstats
path: root/main/ruby-net-ldap/APKBUILD
blob: 35f6557e261dc8530b042159db2c5e871053d301 (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>
_gemname=net-ldap
pkgname=ruby-net-ldap
pkgver=0.10.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"

_builddir="$srcdir"/$_realname-$pkgver
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="6b00cfc53a64e44db5216b03046383ca  net-ldap-0.10.1.gem"
sha256sums="cc9305c1aa12abe16645b4f028eebd6d6ae123465af18a2cd54602198dc313bd  net-ldap-0.10.1.gem"
sha512sums="353e34d256e55192c1f2c3cfa528d8a27c9e7452b8f31f9036931c0cbcbd6e95358b6d675d4a184512b1f9199b982316909574313cc08321edd91949c7c5b196  net-ldap-0.10.1.gem"