summaryrefslogtreecommitdiff
path: root/pcr/ruby-syntax/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-21 20:18:20 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-21 20:18:20 +0100
commitdb7c9f75a0ab21436efe3007ebc8144b68658976 (patch)
tree4b6b7ecba57a9072b1f0228fd727032bfd395921 /pcr/ruby-syntax/PKGBUILD
parent1e782a8e921f602dbef957f037e2171d351e67e1 (diff)
downloadabslibre-db7c9f75a0ab21436efe3007ebc8144b68658976.tar.gz
abslibre-db7c9f75a0ab21436efe3007ebc8144b68658976.tar.bz2
abslibre-db7c9f75a0ab21436efe3007ebc8144b68658976.zip
pcr/ruby-syntax: updated to 1.2.2
Diffstat (limited to 'pcr/ruby-syntax/PKGBUILD')
-rw-r--r--pcr/ruby-syntax/PKGBUILD14
1 files 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
}