mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
upgpkg: ruby-em-websocket 0.5.2-3
Compile from source to override dependencies
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Tue Jul 6 03:45:12 UTC 2021
|
||||
pkgbase = ruby-em-websocket
|
||||
pkgdesc = EventMachine based WebSocket server
|
||||
pkgver = 0.5.2
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://github.com/igrigorik/em-websocket
|
||||
arch = any
|
||||
license = MIT
|
||||
@@ -11,12 +9,8 @@ pkgbase = ruby-em-websocket
|
||||
depends = ruby-eventmachine>=0.12.9
|
||||
depends = ruby-http_parser.rb>=0.6.0
|
||||
provides = ruby-em-websocket=0.5.2
|
||||
noextract = em-websocket-0.5.2.gem
|
||||
options = !emptydirs
|
||||
source = https://rubygems.org/downloads/em-websocket-0.5.2.gem
|
||||
source = LICENCE
|
||||
sha512sums = f032ff1c4eb6af790ba37def307c79faf3a1cbf87ee9a2a724f17a2be782bafcdc509eb027c0125137c934dc545372d2a32d6b26878b97533710e8962242b0de
|
||||
sha512sums = 70d165a57fd28a316027c97da6dc73cb2ca26e8c58f14414d7e109247abd5c9af435ecfe482e2b007764497471327b33d39ce13c86eb1d8a93ed5f62db96cee6
|
||||
source = ruby-em-websocket-0.5.2.tar.gz::https://github.com/igrigorik/em-websocket/archive/v0.5.2.tar.gz
|
||||
sha512sums = 46df705e2af93082884c7ca521df4f6cf33309c441eb3ba96be609b2cf280e3b72c689810d55279db6dbbc178ed843d64ccdaf9d4b39d52ddac7d84956065b06
|
||||
|
||||
pkgname = ruby-em-websocket
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
Copyright (c) 2009-2014 Ilya Grigorik, Martyn Loughran
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,9 +1,11 @@
|
||||
# Maintainer: Shengyu Zhang <la@archlinuxcn.org>
|
||||
# Maintainer: George Rawlinson <grawlinson@archlinux.com>
|
||||
# Co-Maintainer: Bert Peters <bert@bertpts.nl>
|
||||
# Contributor: Shengyu Zhang <la@archlinuxcn.org>
|
||||
|
||||
_gemname=em-websocket
|
||||
pkgname=ruby-$_gemname
|
||||
pkgver=0.5.2
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='EventMachine based WebSocket server'
|
||||
arch=('any')
|
||||
url='https://github.com/igrigorik/em-websocket'
|
||||
@@ -14,16 +16,27 @@ depends=('ruby'
|
||||
)
|
||||
provides=("$pkgname=$pkgver")
|
||||
options=(!emptydirs)
|
||||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem"
|
||||
'LICENCE'
|
||||
)
|
||||
noextract=($_gemname-$pkgver.gem)
|
||||
sha512sums=('f032ff1c4eb6af790ba37def307c79faf3a1cbf87ee9a2a724f17a2be782bafcdc509eb027c0125137c934dc545372d2a32d6b26878b97533710e8962242b0de'
|
||||
'70d165a57fd28a316027c97da6dc73cb2ca26e8c58f14414d7e109247abd5c9af435ecfe482e2b007764497471327b33d39ce13c86eb1d8a93ed5f62db96cee6')
|
||||
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/igrigorik/em-websocket/archive/v${pkgver}.tar.gz)
|
||||
sha512sums=('46df705e2af93082884c7ca521df4f6cf33309c441eb3ba96be609b2cf280e3b72c689810d55279db6dbbc178ed843d64ccdaf9d4b39d52ddac7d84956065b06')
|
||||
|
||||
prepare() {
|
||||
cd ${_gemname}-${pkgver}
|
||||
sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
|
||||
sed 's|git ls-files|find -type f\|sed "s,\\\\./,,g"|' -i ${_gemname}.gemspec
|
||||
# test_files and executables use black magic, but we don't need them
|
||||
sed '/test_files/d' -i ${_gemname}.gemspec
|
||||
sed '/executables/d' -i ${_gemname}.gemspec
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_gemname}-${pkgver}
|
||||
gem build ${_gemname}.gemspec
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${_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 "$srcdir/LICENCE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -D -m644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user