diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-29 03:01:16 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-29 03:01:16 -0300 |
commit | d61a193bc8cdf55fbb1d8640ced4aafec5ab4ee4 (patch) | |
tree | e2abe57ff3356aa09a166fe4c2531bfe15278bf0 /libre-testing/ruby-mustache | |
parent | 9c502dcd730eff7ffaeb851a5cfe4f04c51bb5aa (diff) | |
parent | 6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f (diff) | |
download | abslibre-d61a193bc8cdf55fbb1d8640ced4aafec5ab4ee4.tar.gz abslibre-d61a193bc8cdf55fbb1d8640ced4aafec5ab4ee4.tar.bz2 abslibre-d61a193bc8cdf55fbb1d8640ced4aafec5ab4ee4.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre-testing/ruby-mustache')
-rw-r--r-- | libre-testing/ruby-mustache/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libre-testing/ruby-mustache/PKGBUILD b/libre-testing/ruby-mustache/PKGBUILD new file mode 100644 index 000000000..d7090cc0d --- /dev/null +++ b/libre-testing/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 +} |