summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-22 11:21:27 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-22 11:21:27 +0100
commit05c17a8dfe9b3730bf71db57d6962943f45630f0 (patch)
tree7dcd7f0bf3e87c86936bcd94b707b9da17c072e5
parent63ec3ae211fa0a20f6f7277cae5d17780302865d (diff)
downloadabslibre-05c17a8dfe9b3730bf71db57d6962943f45630f0.tar.gz
abslibre-05c17a8dfe9b3730bf71db57d6962943f45630f0.tar.bz2
abslibre-05c17a8dfe9b3730bf71db57d6962943f45630f0.zip
pcr/ruby-haml: updated to 5.0.4
-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
}