[arch-commits] Commit in ruby-nio4r/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sun Nov 17 00:02:29 UTC 2019
Date: Sunday, November 17, 2019 @ 00:01:53
Author: anthraxx
Revision: 529851
archrelease: copy trunk to community-x86_64
Added:
ruby-nio4r/repos/community-x86_64/PKGBUILD
(from rev 529850, ruby-nio4r/trunk/PKGBUILD)
Deleted:
ruby-nio4r/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 82 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 43 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-17 00:01:08 UTC (rev 529850)
+++ PKGBUILD 2019-11-17 00:01:53 UTC (rev 529851)
@@ -1,39 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-_gemname=nio4r
-pkgname=ruby-${_gemname}
-pkgver=2.3.1
-pkgrel=2
-pkgdesc='Abstract, cross-platform stateful I/O selector API for Ruby'
-url='https://github.com/celluloid/nio4r'
-arch=('x86_64')
-license=('MIT')
-depends=('ruby')
-makedepends=('ruby-rdoc')
-options=('!emptydirs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/celluloid/nio4r/archive/v${pkgver}.tar.gz)
-sha256sums=('1ec274ad665a854a4cd647f25acca0835134646bef6ab79aed1f7f639027d614')
-sha512sums=('6767c518bb1b562f717dd962ac47216e240262b7daf190676b5c51d2e731b5f495520f1fc9e7047546ca1ddc2575d6d61a2a0bf265fe3960a2768ecc7afa8b23')
-
-prepare() {
- cd ${_gemname}-${pkgver}
- sed 's|git ls-files|find|' -i ${_gemname}.gemspec
-}
-
-build() {
- cd ${_gemname}-${pkgver}
- gem build ${_gemname}.gemspec
-}
-
-package() {
- cd ${_gemname}-${pkgver}
- local _gemdir="$(gem env gemdir)"
- gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
- install -Dm 644 README.md CHANGES.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
- cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
- rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
- find "${pkgdir}/${_gemdir}" \( -name 'mkmf.log' -or -name 'gem_make.out' \) -delete
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-nio4r/repos/community-x86_64/PKGBUILD (from rev 529850, ruby-nio4r/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-17 00:01:53 UTC (rev 529851)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=nio4r
+pkgname=ruby-${_gemname}
+pkgver=2.5.2
+pkgrel=1
+pkgdesc='Abstract, cross-platform stateful I/O selector API for Ruby'
+url='https://github.com/celluloid/nio4r'
+arch=('x86_64')
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(https://github.com/celluloid/nio4r/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('f8a3e12f51c2ee01644f5ebb5e33795be8ece6dd9345bf5fc1ab6d0a72f5118b')
+sha512sums=('4188be15b674e65373c056bdf86ee7dc71ebbabf1e0a3eb5a10edfbe0dfe761c5cba6e89c4a0fc822037901c7e83831c26682770129e023ab9223a6467b9e83c')
+
+prepare() {
+ cd ${_gemname}-${pkgver}
+ sed 's|git ls-files|find|' -i ${_gemname}.gemspec
+}
+
+build() {
+ cd ${_gemname}-${pkgver}
+ gem build ${_gemname}.gemspec
+}
+
+package() {
+ cd ${_gemname}-${pkgver}
+ local _gemdir="$(gem env gemdir)"
+ gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" \
+ -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+
+ install -Dm 644 README.md CHANGES.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
+
+ cd "${pkgdir}/${_gemdir}"
+ rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \
+ extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list