Date: Sunday, November 17, 2019 @ 14:25:33 Author: anthraxx Revision: 530020
upgpkg: ruby-async-io 1.27.0-1 Modified: ruby-async-io/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-17 14:23:59 UTC (rev 530019) +++ PKGBUILD 2019-11-17 14:25:33 UTC (rev 530020) @@ -2,8 +2,8 @@ _gemname=async-io pkgname=ruby-${_gemname} -pkgver=1.16.3 -pkgrel=2 +pkgver=1.27.0 +pkgrel=1 pkgdesc='Provides support for asynchonous TCP, UDP, UNIX and SSL sockets' url='https://github.com/socketry/async-io' arch=('any') @@ -11,9 +11,9 @@ depends=('ruby' 'ruby-async') makedepends=('ruby-rdoc') options=('!emptydirs') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/socketry/async-io/archive/v${pkgver}.tar.gz) -sha256sums=('337f9bb7020df00e0f4228f5728835352b3d452ed61b7538e197c6a55e9893aa') -sha512sums=('710f304e79760c022c29583435e488f100c62bb3a298b417bfb82d9fd2189123fe29bbcd28ac4965c0a159c9724bf4f84e3f7cdc589ff95c56bad94b80bc1c6a') +source=(https://github.com/socketry/async-io/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('e085a1d39f7c6c7c5a89ac97b5f83aeee328cca4d809c9ea9d467e44ccb8866a') +sha512sums=('8b5e4b182e4ee31ddbeef1a882cde8e70c820947e45226bea1a5ce35a35ed441629463d7da027057fca339c0e8fcb063406e797387bb29965b451998ceb67d51') prepare() { cd ${_gemname}-${pkgver} @@ -29,10 +29,15 @@ 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 + gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" \ + -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/licenses/${pkgname}" - rm "${pkgdir}"/${_gemdir}/cache/${_gemname}-${pkgver}.gem + + 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: