asciidoctor 2.0.23-2
This commit is contained in:
parent
ae45f19254
commit
feebfad34d
21
PKGBUILD
21
PKGBUILD
@ -6,7 +6,7 @@
|
|||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=asciidoctor
|
pkgname=asciidoctor
|
||||||
pkgver=2.0.23
|
pkgver=2.0.23
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="An implementation of AsciiDoc in Ruby"
|
pkgdesc="An implementation of AsciiDoc in Ruby"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://asciidoctor.org"
|
url="https://asciidoctor.org"
|
||||||
@ -17,21 +17,22 @@ source=(https://github.com/asciidoctor/asciidoctor/archive/v${pkgver}/${pkgname}
|
|||||||
sha256sums=(72d271de1fccd3610e6f12bba29be1a3b6c8c813c5b2f3a12491ffc423090518)
|
sha256sums=(72d271de1fccd3610e6f12bba29be1a3b6c8c813c5b2f3a12491ffc423090518)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
gem build asciidoctor.gemspec
|
gem build asciidoctor.gemspec
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
gem install -i ${pkgdir}/usr/lib64/ruby/gems/3.3.0 \
|
gem install --ignore-dependencies --no-user-install --verbose \
|
||||||
-n ${pkgdir}/usr/bin \
|
-i ${pkgdir}/usr/lib64/ruby/gems/3.3.0 \
|
||||||
${pkgname}-${pkgver}.gem
|
-n ${pkgdir}/usr/bin \
|
||||||
|
${pkgname}-${pkgver}.gem
|
||||||
|
|
||||||
install -vdm755 ${pkgdir}/usr/share/man/man1
|
install -vdm755 ${pkgdir}/usr/share/man/man1
|
||||||
install -vm644 man/asciidoctor.1 ${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
|
rm ${pkgdir}/usr/lib64/ruby/gems/3.3.0/cache/${pkgname}-${pkgver}.gem
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user