[arch-commits] Commit in ruby-stomp/repos/community-any (PKGBUILD PKGBUILD)
Thore Bödecker
foxxx0 at archlinux.org
Fri Jan 10 10:07:28 UTC 2020
Date: Friday, January 10, 2020 @ 10:07:28
Author: foxxx0
Revision: 551590
archrelease: copy trunk to community-any
Added:
ruby-stomp/repos/community-any/PKGBUILD
(from rev 551589, ruby-stomp/trunk/PKGBUILD)
Deleted:
ruby-stomp/repos/community-any/PKGBUILD
----------+
PKGBUILD | 80 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 49 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-10 10:07:25 UTC (rev 551589)
+++ PKGBUILD 2020-01-10 10:07:28 UTC (rev 551590)
@@ -1,31 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-
-_gemname=stomp
-pkgname="ruby-${_gemname}"
-pkgver=1.4.8
-pkgrel=2
-pkgdesc='Ruby client for the Stomp messaging protocol'
-url='https://github.com/stompgem/stomp'
-arch=('any')
-license=('Apache')
-depends=('ruby')
-makedepends=('ruby-rdoc')
-options=('!emptydirs')
-source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
-noextract=("${_gemname}-${pkgver}.gem")
-sha512sums=('6e5c0727d4b3853f90f8ec4450162b38f571dcd63b58a4d09c284f42f5b9ee884ee8a3b8d27c8d85f8a297337e0d6ed61538bafee840cfc26e15b15039e1e4c9')
-
-package() {
- local _gemdir="$(ruby -e'puts Gem.default_dir')"
-
- gem install \
- --ignore-dependencies \
- --no-user-install \
- -i "${pkgdir}${_gemdir}" \
- -n "${pkgdir}/usr/bin" \
- ${_gemname}-${pkgver}.gem
-
- rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-stomp/repos/community-any/PKGBUILD (from rev 551589, ruby-stomp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-10 10:07:28 UTC (rev 551590)
@@ -0,0 +1,49 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+
+_gemname=stomp
+pkgname="ruby-${_gemname}"
+pkgver=1.4.8
+pkgrel=3
+pkgdesc='Ruby client for the Stomp messaging protocol'
+url='https://github.com/stompgem/stomp'
+arch=('any')
+license=('Apache')
+depends=('ruby')
+makedepends=('ruby-rake' 'ruby-rspec' 'ruby-bundler' 'ruby-rdoc' 'ruby-test-unit')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('29fd8623bbda2038be6baad8a5e1edc9a866f01fa4f205d840ad346ed35364712af19a91a516636465d0446a9b08d8251053d3b5a3649521141f79b9b800cfc6')
+
+prepare() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ :
+}
+
+build() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ mkdir -p pkg
+ gem build -o "pkg/${_gemname}-${pkgver}.gem"
+}
+
+check() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ # testsuite is broken and needs older versions of rspec / rspec-mocks
+ #rake test
+}
+
+package() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ local _gemdir="$(gem env gemdir)"
+
+ gem install \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "${pkgdir}/${_gemdir}" \
+ --bindir "${pkgdir}/usr/bin" \
+ "pkg/${_gemname}-${pkgver}.gem"
+
+ rm -rf "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list