aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-builder/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-builder/APKBUILD')
-rw-r--r--community/ruby-builder/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/ruby-builder/APKBUILD b/community/ruby-builder/APKBUILD
new file mode 100644
index 0000000000..ff7c88a891
--- /dev/null
+++ b/community/ruby-builder/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ruby-builder
+_gemname=builder
+pkgver=3.2.4
+pkgrel=1
+pkgdesc="Provide a simple way to create XML markup and data structures"
+url="https://github.com/jimweirich/builder"
+arch="noarch"
+license="MIT"
+depends="ruby"
+# There's no gemspec in the source repository, that's why we use gem.
+source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
+
+package() {
+ local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
+ local geminstdir="$gemdir/gems/$_gemname-$pkgver"
+
+ gem install \
+ --local \
+ --install-dir "$gemdir" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ "$srcdir"/$_gemname-$pkgver.gem
+
+ rm -rf "$gemdir"/cache \
+ "$geminstdir"/doc \
+ "$geminstdir"/rakelib \
+ "$geminstdir"/test \
+ "$geminstdir"/CHANGES \
+ "$geminstdir"/*LICENSE \
+ "$geminstdir"/Rakefile \
+ "$geminstdir"/*.md
+}
+
+sha512sums="730317ec0a4af33e183283e309e38d47deb08db0ab6bd6dfebdedcebb7470bd383c6c1d32ad674adc43298e0f86930b97c652fff9827ca8890db2d1d68e792f1 builder-3.2.4.gem"