summaryrefslogtreecommitdiffstats
path: root/abs/extra/asciidoctor
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
commit5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch)
treef13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/extra/asciidoctor
parent8d35f28049488f2585ef765bf48e7a58958fd587 (diff)
parent04697136037cb5341ee6c051f8aaa265c0400c82 (diff)
downloadlinhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/extra/asciidoctor')
-rw-r--r--abs/extra/asciidoctor/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/abs/extra/asciidoctor/PKGBUILD b/abs/extra/asciidoctor/PKGBUILD
new file mode 100644
index 0000000..ae4f5d6
--- /dev/null
+++ b/abs/extra/asciidoctor/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
+# Contributor: Stefan Tatschner <rumpelsepp@sevenbyte.org>
+# Contributor: Nick Østergaard <oe.nick at gmail dot com>
+# Contributor: Nicolas Bigaouette <nbigaouette@chemcomp.com>
+
+pkgname=asciidoctor
+pkgver=1.5.6.1
+pkgrel=3
+pkgdesc='An implementation of AsciiDoc in Ruby'
+arch=('any')
+url='http://asciidoctor.org'
+license=('MIT')
+makedepends=('ruby-rdoc')
+depends=('ruby')
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/${pkgname}-${pkgver}.gem)
+noextract=($pkgname-$pkgver.gem)
+sha512sums=('cb23ab539b16b064e4a21575420abdaab34e20b7650a43b47df68ded1a424d1ab265c88102d4f3d3422bd30952fd93db7de254d61fdc253d17ffd93f1345bcdf')
+
+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.adoc" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE.adoc"
+ 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"
+}