summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnatoly Bashmakov2021-01-25 19:39:15 +0200
committerAnatoly Bashmakov2021-01-25 19:39:15 +0200
commitbf0cd677f477a2c32245a037f9238c46265d8bee (patch)
tree201cee02c8b0b681e0f770cf568a5ffc27b254b8 /PKGBUILD
downloadaur-bf0cd677f477a2c32245a037f9238c46265d8bee.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7c351242fa9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Anatoly Bashmakov <anatoly at posteo dot net>
+
+_gemname=asciidoctor-diagram-plantuml
+pkgname=ruby-$_gemname
+pkgver=1.2021.0
+pkgrel=1
+pkgdesc='PlantUML JAR files wrapped in a Ruby gem'
+arch=(any)
+url='https://github.com/asciidoctor/asciidoctor-diagram'
+license=(MIT)
+depends=(ruby)
+makedepends=(ruby-rdoc)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('592e4157b7bc26050f9f68ba5f2dfd49cdf87a4b')
+
+package() {
+ local _gemdir="$(ruby -e 'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/batik-all-license.txt" "$pkgdir/usr/share/licenses/$pkgname/batik-all-license.txt"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/jlatexmath-license.txt" "$pkgdir/usr/share/licenses/$pkgname/jlatexmath-license.txt"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/plantuml-license.txt" "$pkgdir/usr/share/licenses/$pkgname/plantuml-license.txt"
+}