upgpkg: ruby-http_parser.rb 0.8.0-1

* New upstream release.
* Remove unnecessary files/folders.
primary
George Rawlinson 1 year ago
parent 35f2f8f31c
commit 323db62d73
Signed by: grawlinson
GPG Key ID: E0959FEA8B550539
  1. 7
      ruby-http_parser.rb/PKGBUILD

@ -2,7 +2,7 @@
_gemname=http_parser.rb
pkgname=ruby-$_gemname
pkgver=0.7.0
pkgver=0.8.0
pkgrel=1
pkgdesc="A simple callback-based HTTP request/response parser"
arch=('x86_64')
@ -12,7 +12,7 @@ depends=('ruby')
options=('!emptydirs')
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
noextract=("$_gemname-$pkgver.gem")
b2sums=('3bf2e71a433bcbf4852adb07c06f3bffd41fbf2d863b9cdd2f9a5ea352ae335dc960970066cbcfbf84d2cb5c1627ce852afb7315a34ab80af0af458a7ebb043d')
b2sums=('e02fa70e5f5219d70c887db47541985b07f938bb32c4cca943a3d50f73e3baf820a733a2f479f5d40a2e1dabda4d8ae2466834c8b6d8167646a8fb6dcf7c792b')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
@ -27,8 +27,9 @@ package() {
# delete unnecessary files & folders
cd "$pkgdir/$_gemdir"
rm -rf cache
rm -vrf "extensions/$CARCH-linux/$(basename $_gemdir)/$_gemname-$pkgver/gem_make.out"
cd "gems/$_gemname-$pkgver"
rm -rf ext .git*
rm -rf Gemfile Rakefile "$_gemname.gemspec" bench spec tasks ext .git*
# move documentation
install -vd "$pkgdir/usr/share/doc/$pkgname"

Loading…
Cancel
Save