summaryrefslogtreecommitdiff
path: root/libre/ruby-mustache/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:55:26 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:55:26 -0600
commit84531aa9eb51c6fff1bc47aee6a25609bbf69126 (patch)
treea77939f0c04c3f002862dc0bec468b764594ce9e /libre/ruby-mustache/PKGBUILD
parentc4062b116fa9b14497aa00fa15e3579c44565e61 (diff)
move libretools and depends from [libre-testing] to [libre]
Diffstat (limited to 'libre/ruby-mustache/PKGBUILD')
-rw-r--r--libre/ruby-mustache/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/ruby-mustache/PKGBUILD b/libre/ruby-mustache/PKGBUILD
new file mode 100644
index 000000000..d7090cc0d
--- /dev/null
+++ b/libre/ruby-mustache/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (AUR): David Campbell <davekong@archlinux.us>
+
+_gemname=mustache
+pkgname=ruby-$_gemname
+pkgver=0.99.4
+pkgdesc="A framework-agnostic way to render logic-free views."
+url="http://mustache.github.io/"
+license=('custom:MIT')
+
+pkgrel=3
+arch=('any')
+depends=('ruby>=2')
+makedepends=('rubygems')
+source=("http://gems.rubyforge.org/gems/mustache-${pkgver}.gem")
+md5sums=('650194ec2c166feb087377647414b9dc')
+noextract=($_gemname-$pkgver.gem)
+
+package() {
+ cd "${srcdir}"
+ 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
+ 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
+}