diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-25 21:30:10 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-25 21:30:10 +0100 |
commit | d954f31e7b000499d56432bf716dfeae53d4900e (patch) | |
tree | 7063fbec34bb7440b4d50c15ff805630cc5ab203 /community/ronn | |
parent | 6ccaeaa06c23bf987c9d3368f7162fc23de8707c (diff) | |
download | aports-d954f31e7b000499d56432bf716dfeae53d4900e.tar.bz2 aports-d954f31e7b000499d56432bf716dfeae53d4900e.tar.xz |
community/ronn: move from testing
Diffstat (limited to 'community/ronn')
-rw-r--r-- | community/ronn/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/community/ronn/APKBUILD b/community/ronn/APKBUILD new file mode 100644 index 0000000000..e2c7a034ba --- /dev/null +++ b/community/ronn/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +# Note: This project is basically dead, but it's still needed for some packages. +pkgname=ronn +_gemname=$pkgname +pkgver=0.7.3 +pkgrel=0 +pkgdesc="Convert Markdown files to manpages" +url="https://rtomayko.github.io/ronn/" +arch="noarch" +license="MIT" +depends="groff ruby ruby-json ruby-hpricot ruby-mustache ruby-rdiscount" +checkdepends="ruby-rake ruby-test-unit" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/rtomayko/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +check() { + cd "$builddir" + rake test +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + local geminstdir="$gemdir/gems/$_gemname-$pkgver" + + cd "$builddir" + + gem install --local \ + --install-dir "$gemdir" \ + --bindir "$pkgdir/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + install -D -m 644 "$geminstdir"/man/$pkgname.1 \ + "$pkgdir"/usr/share/man/man1/$pkgname.1 + install -D -m 644 "$geminstdir"/man/$pkgname-format.7 \ + "$pkgdir"/usr/share/man/man7/$pkgname-format.7 + install -D -m 644 "$geminstdir"/COPYING \ + "$pkgdir"/usr/share/licenses/$pkgname/COPYING + + # Remove unnecessary files and rubbish... + cd "$gemdir" + rm -r cache build_info doc extensions + cd "$geminstdir" + rm -r test man Rakefile [A-Z][A-Z][A-Z]* +} + +sha512sums="17ebc493a9943c193ef4e43254f1526c4c1346a09eeb0944ef4c0cd34a62e08c6ef5439c4736fa04e1d21370e175ced65a284b143a7a9675736f5b2c6915a594 ronn-0.7.3.tar.gz" |