[arch-commits] Commit in ruby-msgpack/trunk (PKGBUILD)
Tim Meusel
bastelfreak at archlinux.org
Thu May 27 20:33:46 UTC 2021
Date: Thursday, May 27, 2021 @ 20:33:46
Author: bastelfreak
Revision: 949145
cleanup PKGBUILD; make it reproducible
Modified:
ruby-msgpack/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 20:25:05 UTC (rev 949144)
+++ PKGBUILD 2021-05-27 20:33:46 UTC (rev 949145)
@@ -1,9 +1,10 @@
# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
_gemname=msgpack
pkgname="ruby-${_gemname}"
pkgver=1.4.2
-pkgrel=2
+pkgrel=3
pkgdesc='MessagePack implementation for Ruby'
url='https://github.com/msgpack/msgpack-ruby'
arch=('x86_64')
@@ -11,7 +12,7 @@
depends=('ruby')
makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rake-compiler' 'ruby-yard' 'ruby-rspec' 'ruby-bundler')
options=('!emptydirs')
-source=("https://github.com/msgpack/msgpack-ruby/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+source=("${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
sha256sums=('6e844e8f0ba6bcedaf28fd8bfb8ea043265c2f3b1abae1b9606dea787fb30a12')
sha512sums=('bcc053d3389219169d798668eef73fbcf5d6197719442dfc001099ba440258dcb3741ebad3eb408b4b3c54c79f3ecc4f0d58a8d8d9eb5fd0b2fd85c2a6df0fab')
@@ -39,13 +40,15 @@
gem install \
--ignore-dependencies \
--no-user-install \
- -i "${pkgdir}/${_gemdir}" \
- -n "${pkgdir}/usr/bin" \
+ --install-dir "${pkgdir}/${_gemdir}" \
+ --bindir "${pkgdir}/usr/bin" \
"pkg/${_gemname}-${pkgver}.gem"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ rm -rf "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext"
+
cd "${pkgdir}/${_gemdir}"
rm -r cache gems/"${_gemname}-${pkgver}"/{ext,tmp,lib/*/*.so} \
extensions/*/*/"${_gemname}-${pkgver}"/{mkmf.log,gem_make.out}
More information about the arch-commits
mailing list