diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-26 14:17:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-26 14:21:46 +0000 |
commit | 0fd2ad3f1dde8cb3587be55cf1ad6bf6e6513c79 (patch) | |
tree | bcb767ca1e9c3d5b041c9bcf87b6eb3ad355a69b /main | |
parent | 81aa04999957291e284c5381aceba3df03f1882d (diff) | |
download | aports-0fd2ad3f1dde8cb3587be55cf1ad6bf6e6513c79.tar.bz2 aports-0fd2ad3f1dde8cb3587be55cf1ad6bf6e6513c79.tar.xz |
main/asciidoctor: move from testing
Diffstat (limited to 'main')
-rw-r--r-- | main/asciidoctor/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/asciidoctor/APKBUILD b/main/asciidoctor/APKBUILD new file mode 100644 index 0000000000..a9f9f465c0 --- /dev/null +++ b/main/asciidoctor/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Seung Soo Mun <hamletmun@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=asciidoctor +pkgname=$_gemname +pkgver=1.5.2 +pkgrel=0 +pkgdesc="processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats" +url="http://rubygems.org/gems/$_gemname" +arch="noarch" +license="MIT" +depends="ruby" +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 + + cd "$pkgdir" + for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$pkgdir"/usr/bin + ln -s /$i "$pkgdir"/usr/bin/ + fi + done +} + +md5sums="19e93c0003301e0188dedde3924fa39d asciidoctor-1.5.2.gem" +sha256sums="c987aa9d9ad1fd1135a51d28cc3795a217d34bacc2606e13e13638bbe54a4943 asciidoctor-1.5.2.gem" +sha512sums="763c657add887961fb6a6806c803e5c0fbcc92a4ecbfabb14e8f9acf037c4b7c9316ed11788c9e671cc82d711faadc17d597e1bc4b1d27b9b0f1cc84442dd3cf asciidoctor-1.5.2.gem" |