summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2021-05-24 07:05:13 +0000
committerGeorge Rawlinson2021-05-24 07:05:13 +0000
commit152aad3c921aa82987cbe303c7e8b80eeb188b88 (patch)
treec7edfa9c9ef8ece8cd3c5777cd46cee66e9ee5ce
parentde831d392024711e5e277c8658069e8df785bd10 (diff)
downloadaur-152aad3c921aa82987cbe303c7e8b80eeb188b88.tar.gz
upgpkg: ruby-serverengine 2.2.4-1
* New upstream release * Fixed arch (x86_64 to any) due to no ELF files * Deleted unnecessary files/folders from package * Moved documentation & license instead of deleting
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD45
2 files changed, 40 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 969c80548a7..5485007030c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
pkgbase = ruby-serverengine
pkgdesc = A framework to implement robust multiprocess servers
- pkgver = 2.2.3
- pkgrel = 2
+ pkgver = 2.2.4
+ pkgrel = 1
url = https://github.com/treasure-data/serverengine
- arch = x86_64
+ arch = any
license = Apache
depends = ruby
depends = ruby-sigdump
- noextract = serverengine-2.2.3.gem
+ noextract = serverengine-2.2.4.gem
options = !emptydirs
- source = https://rubygems.org/downloads/serverengine-2.2.3.gem
- b2sums = 20f36d60b3f9a01c3768c490db89b8adaade75fc16c1ba738135d24bb858f44c10ab5ff1d0b31f0a287b2ddb3a69f958eaa155e7a54a26bbe5b6a480e52c4325
+ source = https://rubygems.org/downloads/serverengine-2.2.4.gem
+ b2sums = 66e3b10c4396b4613b734d3d2764293de2935b0e99bc33c9ba0e79f69c2af6fbb53dee8e356ab351d65195124e139ec4b0aa7976594387432b88a3875e985ef9
pkgname = ruby-serverengine
diff --git a/PKGBUILD b/PKGBUILD
index e567962636f..c647c63cfab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,44 @@
_gemname=serverengine
pkgname=ruby-$_gemname
-pkgver=2.2.3
-pkgrel=2
+pkgver=2.2.4
+pkgrel=1
pkgdesc='A framework to implement robust multiprocess servers'
-arch=(x86_64)
+arch=('any')
url='https://github.com/treasure-data/serverengine'
-license=(Apache)
-depends=(ruby ruby-sigdump)
-options=(!emptydirs)
-source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
-noextract=($_gemname-$pkgver.gem)
-b2sums=('20f36d60b3f9a01c3768c490db89b8adaade75fc16c1ba738135d24bb858f44c10ab5ff1d0b31f0a287b2ddb3a69f958eaa155e7a54a26bbe5b6a480e52c4325')
+license=('Apache')
+depends=('ruby' 'ruby-sigdump')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+b2sums=('66e3b10c4396b4613b734d3d2764293de2935b0e99bc33c9ba0e79f69c2af6fbb53dee8e356ab351d65195124e139ec4b0aa7976594387432b88a3875e985ef9')
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"
+
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ --no-document \
+ --install-dir "$pkgdir/$_gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ "$_gemname-$pkgver.gem"
+
+ # delete cache
+ cd "$pkgdir/$_gemdir"
+ rm -rf cache
+
+ # delete unnecessary files & folders
+ cd "gems/$_gemname-$pkgver"
+ rm -rf .github .gitignore .rspec spec \
+ Changelog Gemfile LICENSE Rakefile appveyor.yml
+
+ # move documentation
+ install -vd "$pkgdir/usr/share/doc/$pkgname"
+ mv README.md examples "$pkgdir/usr/share/doc/$pkgname"
+
+ # move license notice
+ install -vd "$pkgdir/usr/share/licenses/$pkgname"
+ mv NOTICE "$pkgdir/usr/share/licenses/$pkgname"
}