summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Bashmakov2020-05-26 01:31:31 +0300
committerAnatoly Bashmakov2020-05-26 01:31:31 +0300
commit152d944e530eb7d8eed65ece362013e0edca4de4 (patch)
tree3bb269fbcb1ad46191d05989a1e2e1126de75b11
downloadaur-152d944e530eb7d8eed65ece362013e0edca4de4.tar.gz
Initial commit.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD23
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..456635e60fe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ruby-prawn-svg
+ pkgdesc = SVG renderer for Prawn PDF library
+ pkgver = 0.30.0
+ pkgrel = 1
+ url = http://github.com/mogest/prawn-svg
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-prawn
+ depends = ruby-css_parser-1.6
+ noextract = prawn-svg-0.30.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/prawn-svg-0.30.0.gem
+ sha1sums = 5cc43b99e00564c7cd99558b7d7db0b00eb56812
+
+pkgname = ruby-prawn-svg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86d48e2e04d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Anatoly Bashmakov <anatoly at posteo dot net>
+
+_gemname=prawn-svg
+pkgname=ruby-$_gemname
+pkgver=0.30.0
+pkgrel=1
+pkgdesc='SVG renderer for Prawn PDF library'
+arch=(any)
+url='http://github.com/mogest/prawn-svg'
+license=(MIT)
+depends=(ruby ruby-prawn ruby-css_parser-1.6)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('5cc43b99e00564c7cd99558b7d7db0b00eb56812')
+
+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/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}