aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-github-markup/APKBUILD
blob: c69a07ef7219f66080c7eb9a11e304684da83d5d (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: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer:
_gemname=github-markup
pkgname=ruby-$_gemname
pkgver=1.2.1
pkgrel=0
pkgdesc="This gem is used by GitHub to render any fancy markup such as Markdown, Textile, Org-Mode, etc."
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby ruby-posix-spawn"
depends_dev=""
makedepends="$depends_dev"
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="0eb65135996807d5aa70d2c94d9f1e69  github-markup-1.2.1.gem"
sha256sums="33f291b7b94f6c6a9b42671cf2985b140312c3fef9d918ac928c08d562fa09b9  github-markup-1.2.1.gem"
sha512sums="0c086ef81ebfa7a152395e745ed27235fe684e8e906a00c81caf9418944280ba0957039aa516b9655241b1e49dc153f2281b81a4c80c1be994c1674c5d6d1632  github-markup-1.2.1.gem"