summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnatoly Bashmakov2020-05-26 01:35:04 +0300
committerAnatoly Bashmakov2020-05-26 01:35:04 +0300
commite81c72956b6381fda857c5f48b665ff812c7ae12 (patch)
treed3299ea4f445565cf0237b135140f4127ff5acb1 /PKGBUILD
downloadaur-e81c72956b6381fda857c5f48b665ff812c7ae12.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..29cac583bb5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Anatoly Bashmakov <anatoly at posteo dot net>
+
+_gemname=prawn-table
+pkgname=ruby-$_gemname
+pkgver=0.2.2
+pkgrel=1
+pkgdesc='Provides tables for PrawnPDF'
+arch=(any)
+url='https://github.com/prawnpdf/prawn-table'
+license=(RUBY GPL-2 GPL-3)
+depends=(ruby ruby-prawn)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('0db902ddbb158fda2a7c2e44ef35b3505f4de4ba')
+
+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/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}