summaryrefslogtreecommitdiff
path: root/libre/ruby-rdiscount
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 04:03:25 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 16:24:13 -0500
commit73243768bf2398ec3ccd485c423f81d015951dd8 (patch)
tree95a04c5186ee7a60927fc057f69f0779d7ed464b /libre/ruby-rdiscount
parentb50261dca108000b7496fe56c0c23755428315ad (diff)
libre/ruby-rdiscount: update
Diffstat (limited to 'libre/ruby-rdiscount')
-rw-r--r--libre/ruby-rdiscount/PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/libre/ruby-rdiscount/PKGBUILD b/libre/ruby-rdiscount/PKGBUILD
index b6cbcc4cc..449a717f7 100644
--- a/libre/ruby-rdiscount/PKGBUILD
+++ b/libre/ruby-rdiscount/PKGBUILD
@@ -4,7 +4,7 @@
_gemname=rdiscount
pkgname=ruby-$_gemname
-pkgver=2.1.6
+pkgver=2.1.7
pkgdesc="C implementation of John Gruber's Markdown."
url="http://dafoster.net/projects/rdiscount/"
@@ -14,7 +14,8 @@ pkgrel=1
arch=('i686' 'x86_64')
depends=('ruby')
makedepends=('rubygems')
-source=(http://rubygems.org/downloads/$_gemname-$pkgver.gem)
+source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem)
+md5sums=('33fcd949e204dcacff0002e597cdd7e7')
noextract=($_gemname-$pkgver.gem)
package() {
@@ -23,12 +24,13 @@ package() {
gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
"$_gemname-$pkgver.gem"
- install -Dm644 "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \
- "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -sr "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \
+ "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+
shopt -s nullglob
for file in "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/man/*.{1..8}; do
install -Dm644 "$file" "$pkgdir"/usr/share/man/man${file##*.}/${file##*/}
done
}
-md5sums=('99c5a8f33f6796e766f0b8e73b0519c6')