summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-21 20:18:31 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-21 20:18:31 +0100
commiteb78547bc0a6c2e2a609efd311e546d635461ee9 (patch)
tree9bff5966b3bed68295af86c8636d9ba3854217d8
parentdb7c9f75a0ab21436efe3007ebc8144b68658976 (diff)
downloadabslibre-eb78547bc0a6c2e2a609efd311e546d635461ee9.tar.gz
abslibre-eb78547bc0a6c2e2a609efd311e546d635461ee9.tar.bz2
abslibre-eb78547bc0a6c2e2a609efd311e546d635461ee9.zip
pcr/ruby-asciidoctor: updated to 1.5.8
-rw-r--r--pcr/ruby-asciidoctor/PKGBUILD35
1 files changed, 23 insertions, 12 deletions
diff --git a/pcr/ruby-asciidoctor/PKGBUILD b/pcr/ruby-asciidoctor/PKGBUILD
index 6e0fb0095..40b42f71d 100644
--- a/pcr/ruby-asciidoctor/PKGBUILD
+++ b/pcr/ruby-asciidoctor/PKGBUILD
@@ -1,24 +1,35 @@
# Generated by gem2arch (https://github.com/anatol/gem2arch)
-# Contributor (Arch): Nicolas Bigaouette <nbigaouette@chemcomp.com>
-# Maintainer (Arch): Nick Østergaard <oe.nick at gmail dot com>
+# Contributor (AUR): Nicolas Bigaouette <nbigaouette@chemcomp.com>
+# Maintainer (AUR): Nick Østergaard <oe.nick at gmail dot com>
_gemname=asciidoctor
pkgname=ruby-$_gemname
-pkgver=1.5.2
-pkgrel=1
+pkgver=1.5.8
pkgdesc='An implementation of the AsciiDoc text processor and publishing toolchain in Ruby'
-arch=(any)
url='http://asciidoctor.org'
license=(MIT)
+
+pkgrel=1
+arch=(any)
depends=(ruby)
+makedepends=(rubygems)
options=(!emptydirs)
-source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
-noextract=($_gemname-$pkgver.gem)
-sha1sums=('da218067d519173d97a0ccd24f8ee81eeeef8460')
+source=($pkgname-$pkgver.tar.gz::https://github.com/asciidoctor/asciidoctor/archive/v$pkgver.tar.gz)
+sha256sums=('bc225145feb7876bce5188aa3ef511fad49b141ec18e1bb60e69b33b0a100da0')
+
+build() {
+ cd "$srcdir/$_gemname-$pkgver"
+
+ gem build $_gemname.gemspec
+}
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.adoc" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.adoc"
+ cd "$srcdir/$_gemname-$pkgver"
+
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
+ "$_gemname-$pkgver.gem"
+
+ install -Dm644 "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}