APKBUILD 1.14 KB
Newer Older
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3 4
_gemname=net-ldap
pkgname=ruby-net-ldap
5
pkgver=0.12.1
6
pkgrel=0
7 8 9 10 11 12
pkgdesc="Ruby ldap client"
url="http://rubyldap.com/"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=
13
makedepends="$depends_dev ruby"
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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
}

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