[arch-commits] Commit in asciidoctor/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:24:37 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:24:35
  Author: felixonmars
Revision: 541581

archrelease: copy trunk to community-staging-any

Added:
  asciidoctor/repos/community-staging-any/
  asciidoctor/repos/community-staging-any/PKGBUILD
    (from rev 541580, asciidoctor/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: asciidoctor/repos/community-staging-any/PKGBUILD (from rev 541580, asciidoctor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:24:35 UTC (rev 541581)
@@ -0,0 +1,34 @@
+# Maintainer:  Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Stefan Tatschner <rumpelsepp at sevenbyte.org>
+# Contributor: Nick Østergaard <oe.nick at gmail dot com>
+# Contributor: Nicolas Bigaouette <nbigaouette at chemcomp.com>
+
+pkgname=asciidoctor
+pkgver=2.0.10
+pkgrel=2
+pkgdesc='An implementation of AsciiDoc in Ruby'
+arch=('any')
+url='https://asciidoctor.org'
+license=('MIT')
+makedepends=('ruby-rdoc')
+depends=('ruby')
+options=(!emptydirs)
+source=("https://rubygems.org/downloads/${pkgname}-${pkgver}.gem")
+noextract=("$pkgname-$pkgver.gem")
+sha512sums=('41db1947da60be27079eaef99c76ae7a20797f0291313ac82582466774a569130e995c674f7ef884a05d3d3783d70df3d5ef83b42ded1c722dd9ab7b1a3357ab')
+
+package() {
+    local _gemdir="$(ruby -e 'puts Gem.default_dir')"
+
+    gem install --ignore-dependencies --no-user-install --verbose \
+        -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" \
+        "$pkgname-$pkgver.gem"
+
+    install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/LICENSE" \
+        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+    install -Dm644 "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man/asciidoctor.1" \
+        "$pkgdir/usr/share/man/man1/asciidoctor.1"
+
+    rm "$pkgdir/$_gemdir/cache/$pkgname-$pkgver.gem"
+    rm -rf "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/man"
+}



More information about the arch-commits mailing list