[arch-commits] Commit in ruby-msgpack/repos/community-x86_64 (PKGBUILD PKGBUILD)
Thore Bödecker
foxxx0 at archlinux.org
Fri Feb 5 15:06:03 UTC 2021
Date: Friday, February 5, 2021 @ 15:06:03
Author: foxxx0
Revision: 846139
archrelease: copy trunk to community-x86_64
Added:
ruby-msgpack/repos/community-x86_64/PKGBUILD
(from rev 846138, ruby-msgpack/trunk/PKGBUILD)
Deleted:
ruby-msgpack/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 108 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 54 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-05 15:05:56 UTC (rev 846138)
+++ PKGBUILD 2021-02-05 15:06:03 UTC (rev 846139)
@@ -1,54 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-
-_gemname=msgpack
-pkgname="ruby-${_gemname}"
-pkgver=1.4.1
-pkgrel=1
-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=('b3994f400f29ecd5d72a01e98e53357f76752e8e1212fd41709dffdd7a11a1f1')
-sha512sums=('2f4ffa11ac09d32102f561a99274c906ef85cdd5a8d75bba67b411e416e58946956aa90fcf079cd45d55943a5d95e99ad8d21610b8f0792e67a047a552d8078f')
-
-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 846138, ruby-msgpack/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-05 15:06:03 UTC (rev 846139)
@@ -0,0 +1,54 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+
+_gemname=msgpack
+pkgname="ruby-${_gemname}"
+pkgver=1.4.2
+pkgrel=1
+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:
More information about the arch-commits
mailing list