From db7c9f75a0ab21436efe3007ebc8144b68658976 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Thu, 21 Feb 2019 20:18:20 +0100 Subject: pcr/ruby-syntax: updated to 1.2.2 --- pcr/ruby-syntax/PKGBUILD | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pcr/ruby-syntax/PKGBUILD b/pcr/ruby-syntax/PKGBUILD index 31f1f3994..ffa2242d2 100644 --- a/pcr/ruby-syntax/PKGBUILD +++ b/pcr/ruby-syntax/PKGBUILD @@ -4,29 +4,31 @@ _gemname=syntax pkgname=ruby-$_gemname -pkgver=1.0.0 +pkgver=1.2.2 pkgdesc="A Ruby library for performing simple syntax highlighting" url="http://syntax.rubyforge.org/" license=('custom:BSD3') -pkgrel=2 +pkgrel=1 arch=(any) depends=(ruby) makedepends=(rubygems) -source=("https://rubyforge.org/frs/download.php/4952/$_gemname-$pkgver.tar.bz2" $_gemname.gemspec) -md5sums=('bcb53b7d0847190c40a993c3fe1f1611' - '6e9a615fd9ba73335b16e5cc8762667d') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dblock/syntax/archive/v$pkgver.tar.gz") +sha256sums=('0f4fe45d8dca5cbc6bb0870de5f23aa4d2f518c320dcb38f24b8d603abf16e3a') build() { cd "$srcdir/$_gemname-$pkgver" - gem build ../$_gemname.gemspec + + gem build $_gemname.gemspec } package() { cd "$srcdir/$_gemname-$pkgver" + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \ "$_gemname-$pkgver.gem" + install -Dm644 "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } -- cgit v1.2.3