summaryrefslogtreecommitdiff
path: root/pcr/ruby-haml/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-01 10:36:19 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-01 10:36:19 -0500
commitfd991f01a57f3164f91e8813bfce02a7bdeae3c9 (patch)
tree147275f9a65a66ee9ccc45bd56c6a38192b28dcf /pcr/ruby-haml/PKGBUILD
parent212c0289204604ed0c10446cfd431b2c5562c82a (diff)
downloadabslibre-fd991f01a57f3164f91e8813bfce02a7bdeae3c9.tar.gz
abslibre-fd991f01a57f3164f91e8813bfce02a7bdeae3c9.tar.bz2
abslibre-fd991f01a57f3164f91e8813bfce02a7bdeae3c9.zip
ruby-haml-4.0.6-1: updating version
Diffstat (limited to 'pcr/ruby-haml/PKGBUILD')
-rw-r--r--pcr/ruby-haml/PKGBUILD49
1 files changed, 20 insertions, 29 deletions
diff --git a/pcr/ruby-haml/PKGBUILD b/pcr/ruby-haml/PKGBUILD
index 78ee79783..92a6db2f2 100644
--- a/pcr/ruby-haml/PKGBUILD
+++ b/pcr/ruby-haml/PKGBUILD
@@ -1,35 +1,26 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Contributor (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
+# Contributor (Arch): Matt Harrison <matt at mistbyte dot com>
# Contributor (Arch): Renzo Carbonara <gnuk0001@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
-pkgname=ruby-haml
-pkgver=3.1.6
+_gemname=haml
+pkgname=ruby-$_gemname
+pkgver=4.0.6
pkgrel=1
-pkgdesc="An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine."
-arch=('any')
-url="http://haml-lang.com/"
-license=('MIT')
-groups=()
-depends=('ruby' 'ruby-yard>=0.5.3' 'maruku>=0.5.9')
-makedepends=('rubygems')
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-source=("http://gems.rubyforge.org/gems/haml-${pkgver}.gem")
-noextract=("haml-${pkgver}.gem")
+pkgdesc='An elegant, structured (X)HTML/XML templating engine.'
+arch=(any)
+url='http://haml.info/'
+license=(MIT)
+depends=(ruby ruby-tilt)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('bb04f72b93b4bde846c549b36647d54cd01fc002')
-build() {
- cd $srcdir
- local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
- gem install --ignore-dependencies -i "$pkgdir$_gemdir" haml-$pkgver.gem \
- -n "$pkgdir/usr/bin"
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
}
-
-md5sums=('c73b2755a56cf5461f6a5e430052f436')
-
-# vim:set ts=2 sw=2 et:
-md5sums=('c73b2755a56cf5461f6a5e430052f436')
-md5sums=('c73b2755a56cf5461f6a5e430052f436')