diff options
author | root <root@rshg054.dnsready.net> | 2013-06-09 00:51:01 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-06-09 00:51:01 -0700 |
commit | 7b378b1b5b346bd49a5ab1652214fb34d03de3a9 (patch) | |
tree | 9ec661d7828b93bd4d24723647adc0701d87eda2 /libre/ruby-mustache | |
parent | e90166c70f3a2bd27d8c914491f7e0510855fd3f (diff) |
Sun Jun 9 00:50:45 PDT 2013
Diffstat (limited to 'libre/ruby-mustache')
-rw-r--r-- | libre/ruby-mustache/PKGBUILD | 31 |
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 +} |