summaryrefslogtreecommitdiff
path: root/libre/ruby-mustache/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 04:01:39 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 16:24:13 -0500
commitb50261dca108000b7496fe56c0c23755428315ad (patch)
tree374dc6fd7f7609fb15755443e94830b363198c2f /libre/ruby-mustache/PKGBUILD
parent0fc1c568f85a338fb8890ad6906ae13429108f98 (diff)
libre/ruby-mustache: build against ruby 2.1
Diffstat (limited to 'libre/ruby-mustache/PKGBUILD')
-rw-r--r--libre/ruby-mustache/PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/libre/ruby-mustache/PKGBUILD b/libre/ruby-mustache/PKGBUILD
index d7090cc0d..dbea70158 100644
--- a/libre/ruby-mustache/PKGBUILD
+++ b/libre/ruby-mustache/PKGBUILD
@@ -8,9 +8,9 @@ pkgdesc="A framework-agnostic way to render logic-free views."
url="http://mustache.github.io/"
license=('custom:MIT')
-pkgrel=3
+pkgrel=4
arch=('any')
-depends=('ruby>=2')
+depends=('ruby')
makedepends=('rubygems')
source=("http://gems.rubyforge.org/gems/mustache-${pkgver}.gem")
md5sums=('650194ec2c166feb087377647414b9dc')
@@ -22,8 +22,10 @@ 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/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -sr "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
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##*/}