summaryrefslogtreecommitdiff
path: root/pcr/ruby-syntax/PKGBUILD
diff options
context:
space:
mode:
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
}