asciidoctor 2.0.21-1
This commit is contained in:
commit
81f3472931
37
PKGBUILD
Normal file
37
PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||
# then please put 'unknown'.
|
||||
|
||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||
pkgname=asciidoctor
|
||||
pkgver=2.0.21
|
||||
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=(78a54eaf88fe9f5e6945578313aac4096a9d8c49e760932b3ef66c599483f10b)
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
gem build asciidoctor.gemspec
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
gem install -i ${pkgdir}/usr/lib64/ruby/gems/3.3.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
|
||||
|
||||
mv ${pkgdir}/usr/lib64/ruby/gems/3.3.0/doc ${pkgdir}/usr/share
|
||||
}
|
Loading…
Reference in New Issue
Block a user