summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2021-07-20 19:14:44 -0400
committerMario Finelli2021-07-20 19:14:44 -0400
commit6d9bf97eedea70c7f5e3bb697602318a8a13d762 (patch)
treec6e321db8e4e539fb901b32bfc0cd956cb014233
parent237f7c47b8f65c34ebf45911b75e317806efcea4 (diff)
downloadaur-6d9bf97eedea70c7f5e3bb697602318a8a13d762.tar.gz
upgpkg: ruby-coderay 1.1.3-2
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD14
2 files changed, 16 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3e9eae2f9b8..fb244dc2cda 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,12 @@
pkgbase = ruby-coderay
pkgdesc = Fast syntax highlighting for selected languages
pkgver = 1.1.3
- pkgrel = 1
+ pkgrel = 2
url = http://coderay.rubychan.de
arch = any
license = MIT
+ checkdepends = ruby-rake
+ checkdepends = ruby-rspec
makedepends = git
makedepends = rubygems
makedepends = ruby-rdoc
@@ -14,4 +16,3 @@ pkgbase = ruby-coderay
sha256sums = SKIP
pkgname = ruby-coderay
-
diff --git a/PKGBUILD b/PKGBUILD
index 480e5ae0e00..28f88ffa76f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,22 +4,34 @@
_gemname=coderay
pkgname=ruby-$_gemname
pkgver=1.1.3
-pkgrel=1
+pkgrel=2
pkgdesc="Fast syntax highlighting for selected languages"
arch=(any)
url=http://coderay.rubychan.de
license=(MIT)
depends=(ruby)
+checkdepends=(ruby-rake ruby-rspec)
makedepends=(git rubygems ruby-rdoc)
options=(!emptydirs)
source=(git+https://github.com/rubychan/coderay.git?tag=v${pkgver})
sha256sums=('SKIP')
+prepare() {
+ cd ${_gemname}
+ # disable coverage reporting
+ sed -i "s/require 'simplecov'//" spec/spec_helper.rb
+}
+
build() {
cd ${_gemname}
RELEASE=true gem build ${_gemname}.gemspec
}
+check() {
+ cd ${_gemname}
+ rake spec
+}
+
package() {
cd ${_gemname}
local _gemdir="$(gem env gemdir)"