[arch-commits] Commit in ruby-msgpack/repos/community-x86_64 (PKGBUILD PKGBUILD)
Tim Meusel
bastelfreak at archlinux.org
Thu May 27 20:33:54 UTC 2021
Date: Thursday, May 27, 2021 @ 20:33:54
Author: bastelfreak
Revision: 949146
archrelease: copy trunk to community-x86_64
Added:
ruby-msgpack/repos/community-x86_64/PKGBUILD
(from rev 949145, ruby-msgpack/trunk/PKGBUILD)
Deleted:
ruby-msgpack/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 111 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 57 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-27 20:33:46 UTC (rev 949145)
+++ PKGBUILD 2021-05-27 20:33:54 UTC (rev 949146)
@@ -1,54 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-
-_gemname=msgpack
-pkgname="ruby-${_gemname}"
-pkgver=1.4.2
-pkgrel=2
-pkgdesc='MessagePack implementation for Ruby'
-url='https://github.com/msgpack/msgpack-ruby'
-arch=('x86_64')
-license=('Apache')
-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")
-sha256sums=('6e844e8f0ba6bcedaf28fd8bfb8ea043265c2f3b1abae1b9606dea787fb30a12')
-sha512sums=('bcc053d3389219169d798668eef73fbcf5d6197719442dfc001099ba440258dcb3741ebad3eb408b4b3c54c79f3ecc4f0d58a8d8d9eb5fd0b2fd85c2a6df0fab')
-
-prepare() {
- cd "${_gemname}-ruby-${pkgver}"
- sed 's|git ls-files|find|' -i "${_gemname}.gemspec"
- sed 's|~>|>=|g' -i Gemfile
-}
-
-build() {
- cd "${_gemname}-ruby-${pkgver}"
- rake compile
- rake build
- rake clean
-}
-
-check() {
- cd "${_gemname}-ruby-${pkgver}"
- rake spec
-}
-
-package() {
- cd "${_gemname}-ruby-${pkgver}"
- local _gemdir="$(gem env gemdir)"
- gem install \
- --ignore-dependencies \
- --no-user-install \
- -i "${pkgdir}/${_gemdir}" \
- -n "${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}"
-
- cd "${pkgdir}/${_gemdir}"
- rm -r cache gems/"${_gemname}-${pkgver}"/{ext,tmp,lib/*/*.so} \
- extensions/*/*/"${_gemname}-${pkgver}"/{mkmf.log,gem_make.out}
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-msgpack/repos/community-x86_64/PKGBUILD (from rev 949145, ruby-msgpack/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-27 20:33:54 UTC (rev 949146)
@@ -0,0 +1,57 @@
+# 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=3
+pkgdesc='MessagePack implementation for Ruby'
+url='https://github.com/msgpack/msgpack-ruby'
+arch=('x86_64')
+license=('Apache')
+depends=('ruby')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rake-compiler' 'ruby-yard' 'ruby-rspec' 'ruby-bundler')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+sha256sums=('6e844e8f0ba6bcedaf28fd8bfb8ea043265c2f3b1abae1b9606dea787fb30a12')
+sha512sums=('bcc053d3389219169d798668eef73fbcf5d6197719442dfc001099ba440258dcb3741ebad3eb408b4b3c54c79f3ecc4f0d58a8d8d9eb5fd0b2fd85c2a6df0fab')
+
+prepare() {
+ cd "${_gemname}-ruby-${pkgver}"
+ sed 's|git ls-files|find|' -i "${_gemname}.gemspec"
+ sed 's|~>|>=|g' -i Gemfile
+}
+
+build() {
+ cd "${_gemname}-ruby-${pkgver}"
+ rake compile
+ rake build
+ rake clean
+}
+
+check() {
+ cd "${_gemname}-ruby-${pkgver}"
+ rake spec
+}
+
+package() {
+ cd "${_gemname}-ruby-${pkgver}"
+ local _gemdir="$(gem env gemdir)"
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ --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}
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list