summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ruby-haml/PKGBUILD29
1 files changed, 20 insertions, 9 deletions
diff --git a/pcr/ruby-haml/PKGBUILD b/pcr/ruby-haml/PKGBUILD
index 959d2383c..4f9014792 100644
--- a/pcr/ruby-haml/PKGBUILD
+++ b/pcr/ruby-haml/PKGBUILD
@@ -5,21 +5,32 @@
_gemname=haml
pkgname=ruby-$_gemname
-pkgver=4.0.7
-pkgrel=1
+pkgver=5.0.4
pkgdesc='An elegant, structured (X)HTML/XML templating engine.'
-arch=(any)
url='http://haml.info/'
license=(MIT)
+
+pkgrel=1
+arch=(any)
depends=(ruby ruby-tilt)
+makedepends=(rubygems git)
options=(!emptydirs)
-source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
-noextract=($_gemname-$pkgver.gem)
-md5sums=('54301683936cdf3678f5c513dab3871c')
+source=($pkgname-$pkgver.tar.gz::https://github.com/haml/haml/archive/v$pkgver.tar.gz)
+sha256sums=('3317a8b2593e5c438c4160f7a5c073184b5a29b6a26654cc357132fc22f027dd')
+
+build() {
+ cd "$srcdir/$_gemname-$pkgver"
+
+ gem build $_gemname.gemspec
+}
package() {
+ cd "$srcdir/$_gemname-$pkgver"
+
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"
+ gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
+ "$_gemname-$pkgver.gem"
+
+ install -Dm644 "$srcdir"/$_gemname-$pkgver/MIT-LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}