Date: Sunday, November 17, 2019 @ 14:29:00 Author: anthraxx Revision: 530022
upgpkg: ruby-async-dns 1.2.4-1 Modified: ruby-async-dns/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-17 14:25:38 UTC (rev 530021) +++ PKGBUILD 2019-11-17 14:29:00 UTC (rev 530022) @@ -2,8 +2,8 @@ _gemname=async-dns pkgname=ruby-${_gemname} -pkgver=1.2.0 -pkgrel=2 +pkgver=1.2.4 +pkgrel=1 pkgdesc='Asynchronous DNS resolver and server' url='https://github.com/socketry/async-dns' arch=('any') @@ -10,9 +10,9 @@ license=('MIT') depends=('ruby' 'ruby-async-io') options=('!emptydirs') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/socketry/async-dns/archive/v${pkgver}.tar.gz) -sha256sums=('5ee925507de7d02a3330532004873d80945128ae9af51c89376664a251c29aa2') -sha512sums=('a94de011d47e665049b940941d1c55d89002870d691055906915e13a7047563f174e86d0e9e656cb7db077f9ff261d7bb55f2b028798561ebeae1a4884835c4c') +source=(https://github.com/socketry/async-dns/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('f288e22aadee0488829cceacc9badaab1aaca07623a54aaf9a0c95aff61997ef') +sha512sums=('c2fc6cf2367c63bb72fb9c9934d261cf793043678d1f6ad9f6a327934e39645cfb7ab4f8dd98ab6739627fa63c58f573538edefd18186a7dbc87f89336354628') prepare() { cd ${_gemname}-${pkgver} @@ -28,11 +28,16 @@ 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 -d "${pkgdir}/usr/share/licenses/${pkgname}" ln -s /usr/share/doc/${pkgname}/README.md "${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: