pkgname=asciidoctor pkgver=2.0.23 pkgrel=1 pkgdesc="An implementation of AsciiDoc in Ruby" arch=('x86_64') url="https://asciidoctor.org" license=('MIT') depends=('ruby') options=('!emptydirs') source=(https://github.com/asciidoctor/asciidoctor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(72d271de1fccd3610e6f12bba29be1a3b6c8c813c5b2f3a12491ffc423090518) build() { cd ${pkgname}-${pkgver} gem build asciidoctor.gemspec } package() { cd ${pkgname}-${pkgver} gem install -i ${pkgdir}/usr/lib64/ruby/gems/3.4.0 -n ${pkgdir}/usr/bin ${pkgname}-${pkgver}.gem install -vdm755 ${pkgdir}/usr/share/man/man1 install -vm644 man/asciidoctor.1 ${pkgdir}/usr/share/man/man1 }