summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91e913206aa07cc17ef0d25a0b2a2c0120b3319c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Stick <stick@stma.is>

_gemname=asciidoctor-html5s
pkgname="ruby-$_gemname"
pkgver=0.5.1
pkgrel=1
pkgdesc='Semantic HTML5 converter (backend) for Asciidoctor'
arch=(x86_64)
url="https://github.com/jirutka/$_gemname"
license=(MIT)
depends=(asciidoctor ruby ruby-thread_safe)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=('416b7a71d81bd59c556f6ef4a3edbaa50e49d6785619519a5d68eaec3173cbfd')

package() {
	local _gemdir="$(ruby -e'puts Gem.default_dir')"
	gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
	rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
	find "$pkgdir/$_gemdir/extensions/" -name *.so -delete
}