summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2021-01-16 15:52:31 -0500
committerMario Finelli2021-01-16 15:52:31 -0500
commit237f7c47b8f65c34ebf45911b75e317806efcea4 (patch)
tree341e2a67326a77015d58356132e6df1e1e7204c6
parent70196470cac3af901892d3f85e638db044f4ca59 (diff)
downloadaur-237f7c47b8f65c34ebf45911b75e317806efcea4.tar.gz
Bump to v1.1.3
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD26
2 files changed, 21 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dafb9dddbd4..3e9eae2f9b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = ruby-coderay
- pkgdesc = Fast syntax highlighting for selected languages.
- pkgver = 1.1.2
- pkgrel = 2
+ pkgdesc = Fast syntax highlighting for selected languages
+ pkgver = 1.1.3
+ pkgrel = 1
url = http://coderay.rubychan.de
arch = any
license = MIT
+ makedepends = git
makedepends = rubygems
makedepends = ruby-rdoc
depends = ruby
- noextract = coderay-1.1.2.gem
options = !emptydirs
- source = https://rubygems.org/downloads/coderay-1.1.2.gem
- sha256sums = 9efc1b3663fa561ccffada890bd1eec3a5466808ebc711ab1c5d300617d96a97
+ source = git+https://github.com/rubychan/coderay.git?tag=v1.1.3
+ sha256sums = SKIP
pkgname = ruby-coderay
diff --git a/PKGBUILD b/PKGBUILD
index 4aae0e421c8..480e5ae0e00 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,26 @@
_gemname=coderay
pkgname=ruby-$_gemname
-pkgver=1.1.2
-pkgrel=2
-pkgdesc='Fast syntax highlighting for selected languages.'
+pkgver=1.1.3
+pkgrel=1
+pkgdesc="Fast syntax highlighting for selected languages"
arch=(any)
-url='http://coderay.rubychan.de'
+url=http://coderay.rubychan.de
license=(MIT)
depends=(ruby)
-makedepends=(rubygems ruby-rdoc)
+makedepends=(git rubygems ruby-rdoc)
options=(!emptydirs)
-source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
-noextract=($_gemname-$pkgver.gem)
-sha256sums=('9efc1b3663fa561ccffada890bd1eec3a5466808ebc711ab1c5d300617d96a97')
+source=(git+https://github.com/rubychan/coderay.git?tag=v${pkgver})
+sha256sums=('SKIP')
+
+build() {
+ cd ${_gemname}
+ RELEASE=true gem build ${_gemname}.gemspec
+}
package() {
- local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ cd ${_gemname}
+ local _gemdir="$(gem env gemdir)"
gem install \
--ignore-dependencies \
@@ -28,6 +33,5 @@ package() {
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
- install -Dm0644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm0644 MIT-LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}