summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-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')