From c1d3da9ca87c414100b1cb969e36b8d7d05b9a74 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 10 Aug 2022 09:16:34 +0100 Subject: added ovmf, lolcat, spice, and squashfstools --- repo/ronn/ronn.xibuild | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 repo/ronn/ronn.xibuild (limited to 'repo/ronn/ronn.xibuild') diff --git a/repo/ronn/ronn.xibuild b/repo/ronn/ronn.xibuild new file mode 100644 index 0000000..50e700e --- /dev/null +++ b/repo/ronn/ronn.xibuild @@ -0,0 +1,53 @@ +#!/bin/sh + +NAME="ronn" +DESC="Convert Markdown files to manpages" + +MAKEDEPS="" + +PKG_VER=0.9.1 +_gemname=ronn-ng +SOURCE="https://github.com/apjanke/$_gemname/archive/v$PKG_VER/$_gemname-$PKG_VER.tar.gz" +DEPS="ruby ruby-kramdown ruby-mustache ruby-nokogiri" + +ADDITIONAL=" +fix-ruby-3.1-compat.patch +mustache-1.X.patch +" + +prepare () { + apply_patches +} + +build() { + gem build $_gemname.gemspec +} + +check() { + rake test +} + +package() { + local gemdir="$PKG_DEST/$(ruby -e 'puts Gem.default_dir')" + local geminstdir="$gemdir/gems/$_gemname-$PKG_VER" + + gem install --local \ + --install-dir "$gemdir" \ + --bindir "$PKG_DEST/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + install -D -m 644 "$geminstdir"/man/ronn.1 \ + "$PKG_DEST"/usr/share/man/man1/ronn.1 + install -D -m 644 "$geminstdir"/man/ronn-format.7 \ + "$PKG_DEST"/usr/share/man/man7/ronn-format.7 + + # Remove unnecessary files and rubbish... + cd "$gemdir" + rm -r cache build_info doc extensions plugins + cd "$geminstdir" + rm -r test man Rakefile [A-Z][A-Z][A-Z]* +} + -- cgit v1.2.1