[arch-commits] Commit in ruby-kramdown/repos (2 files)

Anatol Pomozov anatolik at archlinux.org
Tue Apr 28 17:29:06 UTC 2020


    Date: Tuesday, April 28, 2020 @ 17:29:05
  Author: anatolik
Revision: 622065

archrelease: copy trunk to community-testing-any

Added:
  ruby-kramdown/repos/community-testing-any/
  ruby-kramdown/repos/community-testing-any/PKGBUILD
    (from rev 622064, ruby-kramdown/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: ruby-kramdown/repos/community-testing-any/PKGBUILD (from rev 622064, ruby-kramdown/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-28 17:29:05 UTC (rev 622065)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=kramdown
+pkgname=ruby-kramdown
+pkgver=2.2.1
+pkgrel=1
+pkgdesc='Fast, pure Ruby Markdown superset converter, using a strict syntax definition'
+url='https://kramdown.gettalong.org/'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rdoc' 'ruby-rake')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gettalong/kramdown/archive/REL_${pkgver//./_}.tar.gz)
+sha256sums=('871924c9713e9cb281c3dc92a6ace1272f1a168211cf238c4471193712e7ab7a')
+sha512sums=('0ad841ecef079cef4a50fd697743de99487ff7127a72c20b8904c8caec831574d424d75bd5f78d85232be174fdfdfafab85e839f90387e3c5cfd17097a7ba83e')
+
+prepare() {
+  cd ${_gemname}-REL_${pkgver//./_}
+  rake gemspec
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+}
+
+build() {
+  cd ${_gemname}-REL_${pkgver//./_}
+  gem build ${_gemname}.gemspec
+}
+
+package() {
+  cd ${_gemname}-REL_${pkgver//./_}
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -d "${pkgdir}/usr/share/man/man1"
+  mv "${pkgdir}/${_gemdir}/gems/kramdown-${pkgver}/man/man1/kramdown.1" "${pkgdir}/usr/share/man/man1"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+  rm -r "${pkgdir}/${_gemdir}/gems/kramdown-${pkgver}/test"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list