2024-10-16 01:35:43 +08:00
|
|
|
# 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
|
2024-10-16 01:48:55 +08:00
|
|
|
pkgver=2.0.23
|
2024-11-04 00:08:43 +08:00
|
|
|
pkgrel=2
|
2024-10-16 01:35:43 +08:00
|
|
|
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)
|
2024-10-16 01:48:55 +08:00
|
|
|
sha256sums=(72d271de1fccd3610e6f12bba29be1a3b6c8c813c5b2f3a12491ffc423090518)
|
2024-10-16 01:35:43 +08:00
|
|
|
|
|
|
|
build() {
|
2024-11-04 00:08:43 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-10-16 01:35:43 +08:00
|
|
|
|
2024-11-04 00:08:43 +08:00
|
|
|
gem build asciidoctor.gemspec
|
2024-10-16 01:35:43 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-11-04 00:08:43 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-10-16 01:35:43 +08:00
|
|
|
|
2024-11-04 00:08:43 +08:00
|
|
|
gem install --ignore-dependencies --no-user-install --verbose \
|
|
|
|
-i ${pkgdir}/usr/lib64/ruby/gems/3.3.0 \
|
|
|
|
-n ${pkgdir}/usr/bin \
|
|
|
|
${pkgname}-${pkgver}.gem
|
2024-10-16 01:35:43 +08:00
|
|
|
|
2024-11-04 00:08:43 +08:00
|
|
|
install -vdm755 ${pkgdir}/usr/share/man/man1
|
|
|
|
install -vm644 man/asciidoctor.1 ${pkgdir}/usr/share/man/man1
|
2024-10-16 01:35:43 +08:00
|
|
|
|
2024-11-04 00:08:43 +08:00
|
|
|
rm ${pkgdir}/usr/lib64/ruby/gems/3.3.0/cache/${pkgname}-${pkgver}.gem
|
2024-10-16 01:35:43 +08:00
|
|
|
}
|