[arch-commits] Commit in ruby-hpricot/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Jan 3 07:17:21 UTC 2018
Date: Wednesday, January 3, 2018 @ 07:17:20
Author: foutrelis
Revision: 277889
archrelease: copy trunk to community-staging-x86_64
Added:
ruby-hpricot/repos/community-staging-x86_64/
ruby-hpricot/repos/community-staging-x86_64/PKGBUILD
(from rev 277888, ruby-hpricot/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: ruby-hpricot/repos/community-staging-x86_64/PKGBUILD (from rev 277888, ruby-hpricot/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-03 07:17:20 UTC (rev 277889)
@@ -0,0 +1,31 @@
+#$Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Andrea Scarpino <bash.lnx at gmail.com>
+# Contributor: William Rea <sillywilly at gmail.com>
+# Contributor: <stefanh-husmann at t-online.de>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+_gemname=hpricot
+pkgname=ruby-$_gemname
+pkgver=0.8.6
+pkgrel=6
+pkgdesc='A swift, liberal HTML parser with a fantastic library'
+arch=(x86_64)
+url='http://code.whytheluckystiff.net/hpricot/'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('87ce2c17960a5e1d7ceaa16d0591ca6a28379ce0')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ find "$pkgdir/$_gemdir/extensions/" -name *.so -delete
+ rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/test"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+ rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext"
+}
More information about the arch-commits
mailing list